mirror of
https://github.com/gryf/snipmate.vim.git
synced 2025-12-20 04:47:59 +01:00
made sure g:snippets_dir is always an absolute path
This commit is contained in:
@@ -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