diff --git a/plugin/snipple.vim b/plugin/snipple.vim index abe0940..422b27a 100644 --- a/plugin/snipple.vim +++ b/plugin/snipple.vim @@ -1,6 +1,6 @@ " get basedir and strip trailing slashes to not clash with completion " and path construction -let g:SnippleBaseDir = get(g:, 'SnippleBaseDir', $HOME . '/.snippets/')->trim("/", 2) +let g:SnippleBaseDir = substitute(get(g:, 'SnippleBaseDir', $HOME . '/.snippets/'), "/$", "", "") " command definitions command! -nargs=1 -complete=customlist,snipple#AvailableSnippets SnippleLoad :call snipple#LoadSnippet()