diff --git a/after/ftplugin/vim_snips.vim b/after/ftplugin/vim_snips.vim index e93b1b3..997e0e7 100644 --- a/after/ftplugin/vim_snips.vim +++ b/after/ftplugin/vim_snips.vim @@ -11,7 +11,7 @@ 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\nlet snippet_file = '$1'${2}" + \ "finish\nendif\nlet s:did_$1_snips = 1\nlet snippet_filetype = '$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"