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:
@@ -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, ...)
|
||||
|
||||
Reference in New Issue
Block a user