Replies: 1 comment 1 reply
-
There appears to be no mention in its docs or codebase about trailing empty lines, so I had to do some testing to determine this, but it seems like SnipMate does remove a single at the end, while Ultisnips doesn't. So, yes, to be compatible with snipMate, and also support vim-snippets properly, I think Snippy should remove the last line if empty. Looks like almost all snippet files from vim-snippets avoid trailing empty lines, |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
If you use snippets such as these with snippy, you'll notice that the empty lines after the snippets (before the next snippet) are expanded as well.
Am I missing something obvious or is this a bug? A simple fix is to manually remove every blank line but the README claims snipMate compatibility so I was wondering about this.
^ Notice the extra empty line added when the snippet expands.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions