diff options
author | Aaron LI <aly@aaronly.me> | 2023-06-13 09:33:31 +0800 |
---|---|---|
committer | Aaron LI <aly@aaronly.me> | 2023-06-13 10:02:50 +0800 |
commit | 3264fa9c6c0dc567c337981a83073e5c63178322 (patch) | |
tree | 194c05e3f2c22bd2720231cd310e55cc36b8dc5f /_vim/vimrc | |
parent | 54ac3cbb7e548379f4c23e8b753b3839d0c8e2d3 (diff) | |
download | dotfiles-3264fa9c6c0dc567c337981a83073e5c63178322.tar.bz2 |
vim: Adjust keymaps for NERDTree and Tagbar
Diffstat (limited to '_vim/vimrc')
-rw-r--r-- | _vim/vimrc | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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 |