From 3264fa9c6c0dc567c337981a83073e5c63178322 Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Tue, 13 Jun 2023 09:33:31 +0800 Subject: vim: Adjust keymaps for NERDTree and Tagbar --- _vim/vimrc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to '_vim') 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 gb :Gblame autocmd BufReadPost fugitive://* setlocal bufhidden=delete " Mappings for NERDTree -nnoremap n :NERDTreeFocus -nnoremap :NERDTreeToggle +nnoremap n :NERDTreeToggle " 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 t :TagbarToggle + """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " => Helper functions -- cgit v1.2.2