2011-06-20 13:40:28 -04:00
|
|
|
snippet header
|
|
|
|
" File: ${1:`expand('%:t')`}
|
|
|
|
" Author: ${2:`g:snips_author`}
|
|
|
|
" Description: ${3}
|
2013-07-25 17:17:32 -04:00
|
|
|
${0:" Last Modified: `strftime("%B %d, %Y")`}
|
2011-06-20 13:40:28 -04:00
|
|
|
snippet guard
|
2013-07-07 21:41:11 -04:00
|
|
|
if exists('${1:did_`vim_snippets#Filename()`}') || &cp${2: || version < 700}
|
2011-06-20 13:40:28 -04:00
|
|
|
finish
|
|
|
|
endif
|
2013-07-25 17:17:32 -04:00
|
|
|
let $1 = 1${0}
|
2011-06-20 13:40:28 -04:00
|
|
|
snippet f
|
|
|
|
fun! ${1:`expand('%') =~ 'autoload' ? substitute(matchstr(expand('%:p'),'autoload/\zs.*\ze.vim'),'[/\\]','#','g').'#' : ''`}${2:function_name}(${3})
|
2013-07-25 17:17:32 -04:00
|
|
|
${0}
|
2011-06-20 13:40:28 -04:00
|
|
|
endf
|
2011-08-30 00:57:47 -04:00
|
|
|
snippet t
|
|
|
|
try
|
|
|
|
${1}
|
|
|
|
catch ${2}
|
2013-07-25 17:17:32 -04:00
|
|
|
${0}
|
2011-08-30 00:57:47 -04:00
|
|
|
endtry
|
2011-06-20 13:40:28 -04:00
|
|
|
snippet for
|
2013-06-22 20:30:26 -04:00
|
|
|
for ${1} in ${2}
|
2013-07-25 17:17:32 -04:00
|
|
|
${0}
|
2011-06-20 13:40:28 -04:00
|
|
|
endfor
|
2013-06-22 20:30:26 -04:00
|
|
|
snippet forkv
|
2013-06-23 07:31:33 -04:00
|
|
|
for [${1},${2}] in items(${3})
|
2013-07-25 17:17:32 -04:00
|
|
|
${0}
|
2014-03-05 02:52:50 -05:00
|
|
|
unlet $1 $2
|
2013-06-22 20:30:26 -04:00
|
|
|
endfor
|
2011-06-20 13:40:28 -04:00
|
|
|
snippet wh
|
2013-06-22 20:30:26 -04:00
|
|
|
while ${1}
|
2013-07-25 17:17:32 -04:00
|
|
|
${0}
|
2011-06-20 13:40:28 -04:00
|
|
|
endw
|
|
|
|
snippet if
|
2013-06-22 20:30:26 -04:00
|
|
|
if ${1}
|
2013-07-25 17:17:32 -04:00
|
|
|
${0}
|
2011-06-20 13:40:28 -04:00
|
|
|
endif
|
|
|
|
snippet ife
|
2013-06-22 20:30:26 -04:00
|
|
|
if ${1}
|
2011-06-20 13:40:28 -04:00
|
|
|
${2}
|
|
|
|
else
|
2013-07-25 17:17:32 -04:00
|
|
|
${0}
|
2011-06-20 13:40:28 -04:00
|
|
|
endif
|
2011-11-24 07:38:52 -05:00
|
|
|
snippet au
|
|
|
|
augroup ${1:AU_NAME}
|
|
|
|
" this one is which you're most likely to use?
|
2013-07-25 17:17:32 -04:00
|
|
|
autocmd ${2:BufRead,BufNewFile} ${3:*.ext,*.ext3|<buffer[=N]>} ${0}
|
2011-11-24 07:38:52 -05:00
|
|
|
augroup end
|
2014-05-06 03:19:30 -04:00
|
|
|
snippet bun Vundle.vim Plugin definition
|
|
|
|
Plugin '${0}'
|
|
|
|
snippet plug Vundle.vim Plugin definition
|
|
|
|
Plugin '${0}'
|