# HG changeset patch # User Ludovic Chabant # Date 1446527138 28800 # Node ID c44641ca37e232ccad3abbd98544a003a9a7886f # Parent 1cfcad59709fd9bba5e72516f0aa009edf8bf0ac Fix NERDTree stuff. diff -r 1cfcad59709f -r c44641ca37e2 vim/vimrc --- 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 " }}}