mirror of
https://github.com/gryf/snipmate.vim.git
synced 2026-10-12 08:02:30 +02:00
made sure g:snippets_dir is always an absolute path
This commit is contained in:
1 parent
319292a669
commit
75b87b7473
1 file changed
+1
-1
@@ -14,7 +14,7 @@ snor <left> <esc>bi
|
|||||||
|
|
||||||
" By default load snippets in ~/.vim/snippets/<filetype>
|
" By default load snippets in ~/.vim/snippets/<filetype>
|
||||||
if !exists('snippets_dir')
|
if !exists('snippets_dir')
|
||||||
let snippets_dir = finddir('snippets', &rtp).'/'
|
let snippets_dir = fnamemodify(finddir('snippets', &rtp), ':p')
|
||||||
endif
|
endif
|
||||||
if empty(snippets_dir) | finish | endif
|
if empty(snippets_dir) | finish | endif
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user