Sorry, I'm not export of snippets.vim, so please explain "WHAT IS WRONG".
What should be shown?
What is correct behavior?
And what is wrong?
On Tuesday, September 6, 2011 10:23:18 AM UTC+9, 驼峰 wrote:
>
> here is some sample of c.snippets.
>
> # main()
> snippet main
> int main(int argc, const char *argv[])
> {
> ${1}
> return 0;
> }
> snippet mainn
> int main(void)
> {
> ${1}
> return 0;
> }
> # #include <...>
> snippet inc
> #include <${1:stdio}.h>${2}
> # #include "..."
> snippet Inc
> #include "${1:`Filename("$1.h")`}"${2}
> # #ifndef ... #define ... #endif
> snippet Def
> #ifndef $1
> #define ${1:SYMBOL} ${2:value}
> #endif${3}
> snippet def
> #define
> snippet ifdef
> #ifdef ${1:FOO}
> ${2:#define }
> #endif
> snippet #if
> #if ${1:FOO}
> ${2}
> #endif
> # Header Include-Guard
> snippet once
> #ifndef ${1:`toupper(Filename('__$1_H__', 'UNTITLED_H'))`}
> #define $1
>
> ${2}
>
> #endif // $1
>
> If I input "Ex", the following shortcut for snippets will be shown.
> main
> mainn
> inc
> Inc
> Def
> def
> ifdef
> ...
>
--
You received this message from the "vim_dev" 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