From 698344774aabe31cb83090e6bb937f2c8ac898f3 Mon Sep 17 00:00:00 2001 From: Morten Minde Neergaard <169057+xim@users.noreply.github.com> Date: Wed, 7 Sep 2022 10:00:24 +0200 Subject: [PATCH] Don't run setup for file names that already exist. This fixes issue #82 --- plugin/file_line.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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