vim: Add more binds for split view navigation

This commit is contained in:
2020-09-28 04:13:45 +02:00
parent 093c3a6f9c
commit 11819cc359

View File

@@ -59,6 +59,10 @@ noremap <silent> <C-k> :call search('^'. matchstr(getline('.'), '\(^\s*\)') .'\%
noremap <silent> <C-j> :call search('^'. matchstr(getline('.'), '\(^\s*\)') .'\%>' . line('.') . 'l\S', 'e')<CR>
" Split view navigation
" Create new panes
nnoremap <C-w>N :vsplit<CR>
nnoremap <C-w>n :split<CR>
" Move between panes
nnoremap <C-h> <C-w><C-h>
nnoremap <C-j> <C-w><C-j>
nnoremap <C-k> <C-w><C-k>
@@ -89,6 +93,9 @@ if (has('clipboard') || has('nvim'))
vnoremap <leader>P "+P
endif
" Ctrl-Backspace should delete words in insert mode.
inoremap <C-H> <C-W>
" Aesthetics ###################################################################
" Use 24-bit (true-color) mode
if (has('termguicolors'))