On Friday, November 2, 2012 5:44:35 PM UTC-4, Marco wrote:
Hi,
I discovered the plugin ultisnips and like it a lot. However, I have
problems setting up the snippets (BTW: I don't know python). I need
a snippet that has two mandatory arguments and several optional ones
(no more
2012-11-03 skeept:
I have two suggestions for this.
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.
global !p
def ins1(t1, t2):
return t2 if t1 else ''
endglobal
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
Hi,
I discovered the plugin ultisnips and like it a lot. However, I have
problems setting up the snippets (BTW: I don't know python). I need
a snippet that has two mandatory arguments and several optional ones
(no more than four). Here an example:
snippet def def
def ${1:${VISUAL:foo}}