From 7ab3ca8565162a6ea40c9753e865beeb6b7600e3 Mon Sep 17 00:00:00 2001 From: Marco Hinz Date: Tue, 30 Apr 2013 08:53:15 +0200 Subject: [PATCH] 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. --- plugin/startify.vim | 3 --- 1 file changed, 3 deletions(-) diff --git a/plugin/startify.vim b/plugin/startify.vim index e261bd7..8c9f6c7 100644 --- a/plugin/startify.vim +++ b/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 '. cnt .' :edit '. startify#escape(fname) .' lcd %:h'