Use ,, to toggle nerdtree and ,n to focus it instead of the other way around

This commit is contained in:
2022-09-11 18:46:34 +02:00
parent 75f91f2b33
commit e2ca4592be

4
.vimrc
View File

@@ -136,9 +136,9 @@ nnoremap <silent> <C-d> :botright terminal ++close<CR>
inoremap <silent> <C-d> <Esc>:botright terminal ++close<CR> inoremap <silent> <C-d> <Esc>:botright terminal ++close<CR>
" Handle nerdtree and other utility-windows " Handle nerdtree and other utility-windows
nnoremap <Leader>, :NERDTreeFocus<CR> nnoremap <Leader>n :NERDTreeFocus<CR>
nnoremap <Leader>c :NERDTreeClose<CR> nnoremap <Leader>c :NERDTreeClose<CR>
nnoremap <Leader>n :NERDTreeToggle<CR> nnoremap <Leader>, :NERDTreeToggle<CR>
nnoremap <Leader>t :TagbarToggle<CR> nnoremap <Leader>t :TagbarToggle<CR>
nnoremap <Leader>u :UndotreeToggle<CR> nnoremap <Leader>u :UndotreeToggle<CR>