From 6b9187673ee62d11042832f938913f15131592a7 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Fri, 1 Feb 2013 01:25:10 -0200 Subject: Adding metadot script --- .../vim.dot.link/after/ftplugin/asp_snippets.vim | 17 +++++++++++ modules/vim/vim.dot.link/after/plugin/snipMate.vim | 35 ++++++++++++++++++++++ 2 files changed, 52 insertions(+) create mode 100644 modules/vim/vim.dot.link/after/ftplugin/asp_snippets.vim create mode 100644 modules/vim/vim.dot.link/after/plugin/snipMate.vim (limited to 'modules/vim/vim.dot.link/after') diff --git a/modules/vim/vim.dot.link/after/ftplugin/asp_snippets.vim b/modules/vim/vim.dot.link/after/ftplugin/asp_snippets.vim new file mode 100644 index 0000000..4fdc8a8 --- /dev/null +++ b/modules/vim/vim.dot.link/after/ftplugin/asp_snippets.vim @@ -0,0 +1,17 @@ +if !exists('loaded_snippet') || &cp + finish +endif + +let st = g:snip_start_tag +let et = g:snip_end_tag +let cd = g:snip_elem_delim + +exec "Snippet rr Response.Redirect(".st."to".et.")".st.et."" +exec "Snippet app Application(\"".st.et."\")".st.et."" +exec "Snippet forin For ".st."var".et." in ".st."array".et."".st.et."Next".st.et."" +exec "Snippet ifelse If ".st."condition".et." Then".st.et."Else".st.et."End if".st.et."" +exec "Snippet rw Response.Write ".st.et."" +exec "Snippet sess Session(\"".st.et."\")".st.et."" +exec "Snippet rf Request.Form(\"".st.et."\")".st.et."" +exec "Snippet rq Request.QueryString(\"".st.et."\")".st.et."" +exec "Snippet while While ".st."NOT".et." ".st."condition".et."".st.et."Wend".st.et."" diff --git a/modules/vim/vim.dot.link/after/plugin/snipMate.vim b/modules/vim/vim.dot.link/after/plugin/snipMate.vim new file mode 100644 index 0000000..03e79ae --- /dev/null +++ b/modules/vim/vim.dot.link/after/plugin/snipMate.vim @@ -0,0 +1,35 @@ +" These are the mappings for snipMate.vim. Putting it here ensures that it +" will be mapped after other plugins such as supertab.vim. +if !exists('loaded_snips') || exists('s:did_snips_mappings') + finish +endif +let s:did_snips_mappings = 1 + +ino =TriggerSnippet() +snor i=TriggerSnippet() +ino =BackwardsSnippet() +snor i=BackwardsSnippet() +ino =ShowAvailableSnips() + +" The default mappings for these are annoying & sometimes break snipMate. +" You can change them back if you want, I've put them here for convenience. +snor b +snor a +snor bi +snor ' b' +snor ` b` +snor % b% +snor U bU +snor ^ b^ +snor \ b\ +snor b + +" By default load snippets in snippets_dir +if empty(snippets_dir) + finish +endif + +call GetSnippets(snippets_dir, '_') " Get global snippets + +au FileType * if &ft != 'help' | call GetSnippets(snippets_dir, &ft) | endif +" vim:noet:sw=4:ts=4:ft=vim -- cgit v1.2.3