Issue a warning if the viminfo file can't be read
Also add a typical solution to the FAQ. Closes #89.
This commit is contained in:
parent
cbc2b29575
commit
ec869a589e
2 changed files with 69 additions and 41 deletions
|
@ -85,6 +85,12 @@ function! startify#insane_in_the_membrane() abort
|
|||
let cnt = 1
|
||||
endif
|
||||
|
||||
if empty(v:oldfiles)
|
||||
echohl WarningMsg
|
||||
echomsg "startify: Can't read viminfo file. Read :help startify-faq"
|
||||
echohl None
|
||||
endif
|
||||
|
||||
for item in s:lists
|
||||
if type(item) == 1
|
||||
let cnt = s:show_{item}(cnt)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue