Skip to content

Commit

Permalink
Don't run setup for file names that already exist.
Browse files Browse the repository at this point in the history
This fixes issue bogado#82
  • Loading branch information
xim committed Sep 7, 2022
1 parent 559088a commit 6983447
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/file_line.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 6983447

Please sign in to comment.