Use skiplist to filter the current directory

This commit is contained in:
Marco Hinz 2013-07-29 22:50:08 +02:00
parent fd0d93476a
commit 2c77ba02a2
2 changed files with 3 additions and 1 deletions

View file

@ -204,6 +204,7 @@ function! s:show_dir(cnt) abort
endif
for fname in split(glob('.\=*'))
if isdirectory(fname)
\ || (exists('g:startify_skiplist') && s:is_in_skiplist(resolve(fnamemodify(fname, ':p'))))
continue
endif
call add(files, [getftime(fname), fname])

View file

@ -140,7 +140,8 @@ Example: let g:startify_bookmarks = [ '~/.vimrc' ]
let g:startify_skiplist = []
A list of Vim regular expressions to filter recently used files.
A list of Vim regular expressions to filter recently used files and files in
the current directory.
Example: let g:startify_skiplist = [
\ 'COMMIT_EDITMSG',