nerdtreefind mapping

This commit is contained in:
ManjaroOne666 2018-01-29 10:42:37 +00:00
parent 16c1992533
commit 156b8ceaa1
1 changed files with 1 additions and 0 deletions

1
vimrc
View File

@ -416,6 +416,7 @@ let g:UltiSnipsJumpBackwardTrigger='<c-z>'
" NERDtree " NERDtree
nnoremap <F3> :NERDTreeFocus<CR> nnoremap <F3> :NERDTreeFocus<CR>
nnoremap <leader>nt :NERDTreeFocus<CR> nnoremap <leader>nt :NERDTreeFocus<CR>
nnoremap <leader>nf :NERDTreeFind<CR>
" allow closing if only window open is a NERDTree " allow closing if only window open is a NERDTree
augroup nerdtreewindow augroup nerdtreewindow
autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif