diff --git a/after/ftplugin/vim_snips.vim b/after/ftplugin/vim_snips.vim index edd68ae..e93b1b3 100644 --- a/after/ftplugin/vim_snips.vim +++ b/after/ftplugin/vim_snips.vim @@ -10,8 +10,8 @@ exe "Snipp snipp exe 'Snipp ${1:trigger}'${2}" exe 'Snipp gsnip exe "GlobalSnip ${1:trigger}"${2}' exe "Snipp gsnipp exe 'GlobalSnip ${1:trigger}'${2}" exe "Snipp guard if !exists('g:loaded_snips') || exists('s:did_". - \ "${1:`substitute(expand(\"%:t:r\"), \"_snips\", \"\", \"\")`}_snips')\n\t" - \ "finish\nendif\nlet s:did_$1_snips = 1${2}" + \ "${1:`substitute(expand(\"%:t:r\"), \"_snips\", \"\", \"\")`}_snips')\n\t" + \ "finish\nendif\nlet s:did_$1_snips = 1\nlet snippet_file = '$1'${2}" exe "Snipp f fun ${1:function_name}()\n\t${2:\" code}\nendfun" exe "Snipp for for ${1:needle} in ${2:haystack}\n\t${3:\" code}\nendfor"