diff --git a/autoload/startify.vim b/autoload/startify.vim index c780de4..238a5e5 100644 --- a/autoload/startify.vim +++ b/autoload/startify.vim @@ -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]) diff --git a/doc/startify.txt b/doc/startify.txt index 224236b..96dc5be 100644 --- a/doc/startify.txt +++ b/doc/startify.txt @@ -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',