Improve vim window navigation
I use windows much more than tabs, so it makes sense to make window navigation more convenient.
This commit is contained in:
parent
ca73637add
commit
b437ad60bf
1 changed files with 8 additions and 4 deletions
|
@ -190,11 +190,15 @@ let $MYVIMRC="$XDG_CONFIG_HOME/vim/vimrc"
|
|||
nnoremap <c-w><c-h> 5<c-w><
|
||||
nnoremap <c-w><c-l> 5<c-w>>
|
||||
|
||||
" easier window navigation
|
||||
nnoremap <c-j> <c-w>j
|
||||
nnoremap <c-k> <c-w>k
|
||||
nnoremap <c-h> <c-w>h
|
||||
nnoremap <c-l> <c-w>l
|
||||
|
||||
" easier tab navigation
|
||||
nnoremap <c-j> :tabprevious<cr>
|
||||
nnoremap <c-k> :tabnext<cr>
|
||||
nnoremap <c-h> :tabfirst<cr>
|
||||
nnoremap <c-l> :tablast<cr>
|
||||
nnoremap <c-n> :tabprevious<cr>
|
||||
nnoremap <c-m> :tabnext<cr>
|
||||
|
||||
" quickly change background
|
||||
nnoremap <leader>bg
|
||||
|
|
Loading…
Add table
Reference in a new issue