From 2e150f015c561555c981916828a7324cf5e06f2b Mon Sep 17 00:00:00 2001 From: Michael Sanders Date: Thu, 26 Feb 2009 20:30:59 -0500 Subject: [PATCH] added back snip, snipp, gsnip, gsnipp, and vim snippets --- after/ftplugin/vim_snips.vim | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 after/ftplugin/vim_snips.vim diff --git a/after/ftplugin/vim_snips.vim b/after/ftplugin/vim_snips.vim new file mode 100644 index 0000000..e5b4c9c --- /dev/null +++ b/after/ftplugin/vim_snips.vim @@ -0,0 +1,16 @@ +if !exists('g:loaded_snips') || exists('s:did_vim_snips') + fini +en +let s:did_vim_snips = 1 + +" snippets for making snippets :) +exe 'Snipp snip exe "Snipp ${1:trigger}"${2}' +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 f fun ${1:function_name}()\n\t${2:\" code}\nendfun" +exe "Snipp for for ${1:needle} in ${2:haystack}\n\t${3:\" code}\nendfor" +exe "Snipp wh wh ${1:condition}\n\t${2:\" code}\nendw" +exe "Snipp if if ${1:condition}\n\t${2:\" code}\nendif" +exe "Snipp ife if ${1:condition}\n\t${2}\nelse\n\t${3}\nendif"