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
|
@ -43,9 +43,8 @@ function! s:start() abort
|
|||
let numfiles = get(g:, 'startify_show_files_number', 10)
|
||||
call append('$', '')
|
||||
for fname in v:oldfiles
|
||||
if !filereadable(expand(fname))
|
||||
\ || (expand(fname) =~# $VIMRUNTIME . sep .'doc')
|
||||
\ || (fname =~# 'bundle'. sep .'.*'. sep .'doc')
|
||||
let expfname = expand(fname)
|
||||
if !filereadable(expfname) || (exists('g:startify_skiplist') && startify#process_skiplist(expfname))
|
||||
continue
|
||||
endif
|
||||
call append('$', ' ['. cnt .']'. repeat(' ', 3 - strlen(string(cnt))) . fname)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue