mirror of
https://github.com/don-philipe/dotfiles.git
synced 2025-11-08 22:57:03 +01:00
Jump to NERDTree when opening new tab in vim
This commit is contained in:
3
.vimrc
3
.vimrc
@@ -35,7 +35,8 @@ inoremap <expr>> strpart(getline('.'), col('.')-1, 1) == ">" ? "\<Right>" : ">"
|
|||||||
"inoremap ' ''<Left>
|
"inoremap ' ''<Left>
|
||||||
|
|
||||||
" Tab navigation
|
" 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-h> :tabprev<CR>
|
||||||
nmap <C-l> :tabnext<CR>
|
nmap <C-l> :tabnext<CR>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user