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:
Fernando Schauenburg 2020-01-31 12:04:03 +01:00
parent ca73637add
commit b437ad60bf

View file

@ -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