Mercurial > dotfiles
comparison 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 |
comparison
equal
deleted
inserted
replaced
331:1cfcad59709f | 332:c44641ca37e2 |
---|---|
671 function! s:ToggleNERDTree() abort | 671 function! s:ToggleNERDTree() abort |
672 NERDTreeToggle | 672 NERDTreeToggle |
673 endfunction | 673 endfunction |
674 | 674 |
675 function! s:FindInNERDTree() abort | 675 function! s:FindInNERDTree() abort |
676 if !g:NERDTree.IsOpen() || getbufvar('%', 'NERDTreeType') == '' | 676 NERDTreeFind |
677 " If we're not in the NERDTree window, switch to it and find the | 677 normal zz |
678 " current file in it. | |
679 NERDTreeFind | |
680 normal zz | |
681 else | |
682 " We're in the NERDTree window, go back to the previous one. | |
683 wincmd p | |
684 endif | |
685 endfunction | 678 endfunction |
686 | 679 |
687 " }}} | 680 " }}} |
688 | 681 |
689 " Local override {{{ | 682 " Local override {{{ |