> 
> > 
> 
> > snippet def "def"
> 
> > def ${1:${VISUAL:foo}}
> 
> > {${2}} ${3:{${4}}} ${5:{${6}}}
> 
> > $0
> 
> > endsnippet 
> 
> 
> 
> This does not work for me. The optional text is not surrounded by
> 
> braces.


It should work (it works for me), but you have to hit <c-j> twice (the first 
one corresponds to $3 and the second one correspond to $4. If you hit backspace 
while on $3 then both $3 and $4 are deleted.

What I was saying about further nesting would be something like this

${3:{$4} ${5:{$6}}}
The idea here is exactly the same, except that now if you hit backspace while 
on $3 you will remove both optional braces, in the first one you only remove 
one at a time. 

-- 
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

Reply via email to