Jump to NERDTree when opening new tab in vim

This commit is contained in:
don philipe
2024-01-05 13:01:25 +01:00
parent 80202b3467
commit 9d80e6b5a1

3
.vimrc
View File

@@ -35,7 +35,8 @@ inoremap <expr>> strpart(getline('.'), col('.')-1, 1) == ">" ? "\<Right>" : ">"
"inoremap ' ''<Left>
" Tab navigation
nmap <C-t> :tabnew<CR>
" new tab and move to previous window (NERDTree if open)
nmap <C-t> :tabnew <bar> :wincmd p<CR>
nmap <C-h> :tabprev<CR>
nmap <C-l> :tabnext<CR>