Răsfoiți Sursa

remove filereadable() check for bookmarks

People want to bookmark directories, too. And I don't want to test for 2
things (filereadable() || isdirectory()), because people should know
what they bookmark anyway.

Closes #16.
Marco Hinz 12 ani în urmă
părinte
comite
7ab3ca8565
1 a modificat fișierele cu 0 adăugiri și 3 ștergeri
  1. 0 3
      plugin/startify.vim

+ 0 - 3
plugin/startify.vim

@@ -84,9 +84,6 @@ function! s:insane_in_the_membrane() abort
   if exists('g:startify_bookmarks')
     call append('$', '')
     for fname in g:startify_bookmarks
-      if !filereadable(expand(fname))
-        continue
-      endif
       let cnt += 1
       call append('$', '   ['. cnt .']'. repeat(' ', 3 - strlen(string(cnt))) . fname)
       execute 'nnoremap <buffer> '. cnt .' :edit '. startify#escape(fname) .' <bar> lcd %:h<cr>'