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:
Marco Hinz 2014-08-20 18:53:13 +02:00
parent cbc2b29575
commit ec869a589e
2 changed files with 69 additions and 41 deletions

View file

@ -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)