From 4befe5c7bed45fa785bf66c5ce8e5bfbc3fa365d Mon Sep 17 00:00:00 2001 From: Alex Karle Date: Sat, 2 Nov 2019 12:46:25 -0400 Subject: [PATCH] vim: fix dirvish vs netrw decision There is an outstanding bug in... something, that makes dirvish and netrw not play nicely together. I was previously checking for the presence of the "vim-dirvish" directory to see if we should disable netrw. This breaks down because it will always be there, even if the submodule is not 'init' and 'updated'. Changing the check for vim-dirvish/plugin correctly represents if we are actually using dirvish. --- vim/vimrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vim/vimrc b/vim/vimrc index bcf05fc..96f6905 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -72,7 +72,7 @@ let g:netrw_banner=0 " disable banner let g:netrw_liststyle=1 " details view " If using Dirvish, don't use netrw -if isdirectory(s:vimdir . '/pack/plugins/start/vim-dirvish') +if isdirectory(s:vimdir . '/pack/plugins/start/vim-dirvish/plugin') " Dirvish #137 let loaded_netrwPlugin = 1 endif -- libgit2 0.28.4