vim snippet : try

This commit is contained in:
JuanPablo 2011-08-30 01:57:47 -03:00
parent 0c062c9ff8
commit c9ddf17afd

View File

@ -12,6 +12,12 @@ snippet f
fun! ${1:`expand('%') =~ 'autoload' ? substitute(matchstr(expand('%:p'),'autoload/\zs.*\ze.vim'),'[/\\]','#','g').'#' : ''`}${2:function_name}(${3}) fun! ${1:`expand('%') =~ 'autoload' ? substitute(matchstr(expand('%:p'),'autoload/\zs.*\ze.vim'),'[/\\]','#','g').'#' : ''`}${2:function_name}(${3})
${4:" code} ${4:" code}
endf endf
snippet t
try
${1}
catch ${2}
${3}
endtry
snippet for snippet for
for ${1:needle} in ${2:haystack} for ${1:needle} in ${2:haystack}
${3:" code} ${3:" code}