1
0
mirror of https://github.com/gryf/snipmate.vim.git synced 2025-12-28 01:12:34 +01:00

fixed bug with updating tab stops after a nested snippet is inserted

This commit is contained in:
Michael Sanders
2009-02-28 16:52:33 -05:00
parent b5999ba5cc
commit 892b4a90fb
2 changed files with 42 additions and 42 deletions

View File

@@ -11,3 +11,18 @@ snor <bs> b<bs>
snor ' b<bs>'
snor <right> <esc>a
snor <left> <esc>bi
" By default load snippets in ~/.vim/snippets/<filetype>
if !exists('snippets_dir')
let snippets_dir = $HOME.(has('win16') || has('win32') || has('win64') ?
\ '\vimfiles\snippets' : '/.vim/snippets/')
endif
if isdirectory(snippets_dir)
if isdirectory(snippets_dir)
call ExtractSnips(snippets_dir, '_')
endif
au FileType * if !exists('did_ft_'.&ft) &&
\ isdirectory(snippets_dir.&ft)
\| cal ExtractSnips(snippets_dir.&ft, &ft)
\| endif
endif