new option: g:startify_skiplist
This list is supposed to contain Vim regular expressions to filter the list of recently used files. An example is given in the doc. Closes #5.
This commit is contained in:
parent
b7a2e0aac0
commit
9a743ac0be
3 changed files with 24 additions and 3 deletions
|
@ -24,6 +24,14 @@ function! startify#get_sep() abort
|
|||
return !exists('+shellslash') || &shellslash ? '/' : '\'
|
||||
endfunction
|
||||
|
||||
function! startify#process_skiplist(arg) abort
|
||||
for regexp in g:startify_skiplist
|
||||
if a:arg =~# regexp
|
||||
return 1
|
||||
endif
|
||||
endfor
|
||||
endfunction
|
||||
|
||||
function! startify#save_session(...) abort
|
||||
if !isdirectory(g:startify_session_dir)
|
||||
echo 'The session directory does not exist: '. g:startify_session_dir
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue