Skip to content

Commit 3e14373

Browse files
committed
Expand '~' in the skiplist
The skiplist gets checked against normal Vim regular expressions. That also means that you can't just use '~'; see ":h /\~". That especially sneaky if you use variables that refer to directories within your home directory. Solution: expand them via fnamemodify(). References #154.
1 parent 96ccdf7 commit 3e14373

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

autoload/startify.vim

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ let s:session_dir = resolve(expand(get(g:, 'startify_session_dir',
2020

2121
let s:skiplist = get(g:, 'startify_skiplist', [
2222
\ 'COMMIT_EDITMSG',
23-
\ $VIMRUNTIME .'/doc',
23+
\ fnamemodify($VIMRUNTIME, ':p') .'/doc',
2424
\ 'bundle/.*/doc',
2525
\ ])
2626

doc/startify.txt

+3-3
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ At the moment only git, hg, bzr and svn are supported.
246246
>
247247
let g:startify_skiplist = [
248248
\ 'COMMIT_EDITMSG',
249-
\ $VIMRUNTIME .'/doc',
249+
\ fnamemodify($VIMRUNTIME, ':p') .'/doc',
250250
\ 'bundle/.*/doc',
251251
\ '.vimgolf',
252252
\ ]
@@ -610,7 +610,7 @@ Use the skiplist. Personally I use:
610610
>
611611
let g:startify_skiplist = [
612612
\ 'COMMIT_EDITMSG',
613-
\ $VIMRUNTIME .'/doc',
613+
\ fnamemodify($VIMRUNTIME, ':p') .'/doc',
614614
\ 'bundle/.*/doc',
615615
\ '\.DS_Store'
616616
\ ]
@@ -691,7 +691,7 @@ This is my configuration..
691691

692692
let g:startify_skiplist = [
693693
\ 'COMMIT_EDITMSG',
694-
\ $VIMRUNTIME .'/doc',
694+
\ fnamemodify($VIMRUNTIME, ':p') .'/doc',
695695
\ 'bundle/.*/doc',
696696
\ '\.vimgolf',
697697
\ ]

0 commit comments

Comments
 (0)