Mercurial > dotfiles
diff vim/vimrc @ 332:c44641ca37e2
Fix NERDTree stuff.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Mon, 02 Nov 2015 21:05:38 -0800 |
parents | e2d944ecda66 |
children | 4d73159f56ca |
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 " }}}