summaryrefslogtreecommitdiffstats
path: root/.vim/after
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2012-02-25 00:29:39 +0100
committerFlorian Pritz <bluewind@xinu.at>2012-02-25 00:29:39 +0100
commit9d5d53b221e859b91a28f5a5e456773683cd1bd7 (patch)
tree8f5b545508ec3178462ea7985ed1dc02d6e15c02 /.vim/after
parent1fbac4bd337f77c37b71de9c7a79c30331af2ffb (diff)
downloaddotfiles-9d5d53b221e859b91a28f5a5e456773683cd1bd7.tar.gz
dotfiles-9d5d53b221e859b91a28f5a5e456773683cd1bd7.tar.xz
Revert "vim: switch to vim-ultisnips; remove snipmate"
Diffstat (limited to '.vim/after')
-rw-r--r--.vim/after/plugin/snipMate.vim24
1 files changed, 24 insertions, 0 deletions
diff --git a/.vim/after/plugin/snipMate.vim b/.vim/after/plugin/snipMate.vim
new file mode 100644
index 0000000..1d995ef
--- /dev/null
+++ b/.vim/after/plugin/snipMate.vim
@@ -0,0 +1,24 @@
+" 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('s:did_snips_mappings') || &cp || version < 700
+ finish
+endif
+let s:did_snips_mappings = 1
+
+ino <silent> <tab> <c-r>=TriggerSnippet()<cr>
+snor <silent> <tab> <esc>i<right><c-r>=TriggerSnippet()<cr>
+ino <silent> <c-r><tab> <c-r>=ShowAvailableSnips()<cr>
+snor <bs> b<bs>
+snor ' b<bs>'
+snor <right> <esc>a
+snor <left> <esc>bi
+
+" 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