aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron LI <aly@aaronly.me>2023-06-13 09:33:31 +0800
committerAaron LI <aly@aaronly.me>2023-06-13 10:02:50 +0800
commit3264fa9c6c0dc567c337981a83073e5c63178322 (patch)
tree194c05e3f2c22bd2720231cd310e55cc36b8dc5f
parent54ac3cbb7e548379f4c23e8b753b3839d0c8e2d3 (diff)
downloaddotfiles-3264fa9c6c0dc567c337981a83073e5c63178322.tar.bz2
vim: Adjust keymaps for NERDTree and Tagbar
-rw-r--r--_vim/vimrc8
1 files changed, 5 insertions, 3 deletions
diff --git a/_vim/vimrc b/_vim/vimrc
index 96dc7aa..81a3e5f 100644
--- a/_vim/vimrc
+++ b/_vim/vimrc
@@ -36,7 +36,7 @@ command! W w !sudo tee % >/dev/null
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
-" => VIM user interface
+" => User interface
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
set mouse=a
set ignorecase
@@ -341,12 +341,14 @@ nnoremap <leader>gb :Gblame<cr>
autocmd BufReadPost fugitive://* setlocal bufhidden=delete
" Mappings for NERDTree
-nnoremap <leader>n :NERDTreeFocus<cr>
-nnoremap <C-t> :NERDTreeToggle<cr>
+nnoremap <leader>n :NERDTreeToggle<cr>
" Start NERDTree when Vim is started without file arguments.
autocmd StdinReadPre * let s:std_in=1
autocmd VimEnter * if argc() == 0 && !exists('s:std_in') | NERDTree | endif
+" Mappings for Tagbar
+nnoremap <leader>t :TagbarToggle<cr>
+
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" => Helper functions