changeset 332:c44641ca37e2

Fix NERDTree stuff.
author Ludovic Chabant <ludovic@chabant.com>
date Mon, 02 Nov 2015 21:05:38 -0800
parents 1cfcad59709f
children e0f8641ed31e
files vim/vimrc
diffstat 1 files changed, 2 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/vim/vimrc	Sat Oct 31 20:42:43 2015 -0700
+++ b/vim/vimrc	Mon Nov 02 21:05:38 2015 -0800
@@ -673,15 +673,8 @@
 endfunction
 
 function! s:FindInNERDTree() abort
-    if !g:NERDTree.IsOpen() || getbufvar('%', 'NERDTreeType') == ''
-        " If we're not in the NERDTree window, switch to it and find the
-        " current file in it.
-        NERDTreeFind
-        normal zz
-    else
-        " We're in the NERDTree window, go back to the previous one.
-        wincmd p
-    endif
+    NERDTreeFind
+    normal zz
 endfunction
 
 " }}}