vim-templates icon indicating copy to clipboard operation
vim-templates copied to clipboard

Blank line added to end of template

Open Licaifei opened this issue 4 years ago • 5 comments

I've got a template for C/C++ code. When I create a new .c file, the template is processed correctly, except that an extra blank line is appended (this seems to happen for all the other templates too). I tried to add the command execute line('$') . "d _" after the process of ExpandLanguageTemplates, but it didn't work.

Any suggestions? Thanks!

Licaifei avatar Nov 27 '21 03:11 Licaifei

image It works correctly if I didn't make sure the first line is blank line.

Licaifei avatar Nov 27 '21 03:11 Licaifei

Duplicates #15

tibabit avatar Dec 05 '21 16:12 tibabit

Closes #15

tibabit avatar Dec 05 '21 16:12 tibabit

Can you raise a PR for this

tibabit avatar Dec 05 '21 16:12 tibabit

Hi,

Is the PR that fixes the last blank line issued?

dr-costas avatar Sep 18 '22 08:09 dr-costas