1 " These are the mappings for snipMate.vim. Putting it here ensures that it
2 " will be mapped after other plugins such as supertab.vim.
3 if !exists('loaded_snips') || exists('s:did_snips_mappings')
6 let s:did_snips_mappings = 1
8 " This is put here in the 'after' directory in order for snipMate to override
9 " other plugin mappings (e.g., supertab).
11 " You can safely adjust these mappings to your preferences (as explained in
12 " :help snipMate-remap).
13 ino <silent> <tab> <c-r>=TriggerSnippet()<cr>
14 snor <silent> <tab> <esc>i<right><c-r>=TriggerSnippet()<cr>
15 ino <silent> <s-tab> <c-r>=BackwardsSnippet()<cr>
16 snor <silent> <s-tab> <esc>i<right><c-r>=BackwardsSnippet()<cr>
17 ino <silent> <c-r><tab> <c-r>=ShowAvailableSnips()<cr>
19 " The default mappings for these are annoying & sometimes break snipMate.
20 " You can change them back if you want, I've put them here for convenience.
32 " By default load snippets in snippets_dir
33 if empty(snippets_dir)
37 call GetSnippets(snippets_dir, '_') " Get global snippets
39 au FileType * if &ft != 'help' | call GetSnippets(snippets_dir, &ft) | endif
40 " vim:noet:sw=4:ts=4:ft=vim