diff --git a/plugin/file_line.vim b/plugin/file_line.vim index 7244014..8ddae15 100644 --- a/plugin/file_line.vim +++ b/plugin/file_line.vim @@ -87,6 +87,6 @@ function! s:startup() endif endfunction -if !isdirectory(expand("%:p")) +if !filereadable(expand("%:p")) && !isdirectory(expand("%:p")) autocmd VimEnter * call s:startup() endif