1
0
mirror of https://github.com/gryf/snipmate.vim.git synced 2025-12-31 11:02:33 +01:00

fixed bug when extracting filetypes on Windows

This commit is contained in:
Michael Sanders
2009-04-05 12:07:02 -04:00
parent 3a86a2beba
commit 3b64a6788c

View File

@@ -21,11 +21,7 @@ au FileType snippet setl noet fdm=indent
let s:snippets = {} | let s:multi_snips = {}
if !exists('snippets_dir')
let snippets_dir = $HOME.(has('win16') || has('win32') || has('win64') ?
\ '\vimfiles\snippets\' : '/.vim/snippets/')
if !isdirectory(snippets_dir)
let snippets_dir = fnamemodify(finddir('snippets', &rtp), ':p')
endif
let snippets_dir = split(globpath(&rtp, 'snippets/'), "\n")[0]
endif
fun! MakeSnip(scope, trigger, content, ...)