Hi,
i. I'm trying to get my snippets to indent correctly but it doesn't work *sigh*.
An example snippet:
snippet elseif
options indent
elseif (${1:// condition}) {
${2:// code...}
}${3}
My settings for the filetype are: tabstop=4 shiftwidth=4 softtabstop=4 expandtab.
It doesn't matter if I use spaces or tabs inside the snippet file, the preview and the expanded snippet is always "flat" (no indentation).
Does the .snip file needs a specific endcoding or line endings?
I've tried UTF-8, Western European (Windows) 1252 and Unix / Windows line endings with all possible variations.
Help please ;)
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Sunday, November 17, 2013
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment