-
Notifications
You must be signed in to change notification settings - Fork 152
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
comments swallowed when expanding template #115
Comments
@Konfekt: Sorry, I cannot reproduce this using a local template, nor a global one. Are you setting any options for the plugin? If yes, which ones and to which values? (As a gentle reminder, note that the default file names searched for local templates are |
Thank you. Indeed, the problem is naming the template |
@Konfekt: I am glad that it seems to be working for you now! I guess we can close this issue now. Anyway, if you run into trouble again, or open a new one if you run into any other issue. Bug reports from user are super-useful 😉 |
Reopening this, because adding a blank line to the template avoids the comment being swallowed (as per comment in vim-pandoc/vim-pandoc#218). We definitely have some issue with the logic around |
I can try to figure a solution, but I am afraid it will take time as I'm quite busy lately. It would be awesome if @muff1nman could take a look at this, as he wrote some of the code around the last line deletion logic. |
The file
template=makefile
with contentproduces, when calling
vim makefile
, the following file:That is, the comment disappears. In fact, if the comment is not placed at the beginning of the file, all lines below it won't appear when the template is expanded.
The text was updated successfully, but these errors were encountered: