vim: Add more binds for split view navigation
This commit is contained in:
@@ -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>
|
noremap <silent> <C-j> :call search('^'. matchstr(getline('.'), '\(^\s*\)') .'\%>' . line('.') . 'l\S', 'e')<CR>
|
||||||
|
|
||||||
" Split view navigation
|
" 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-h> <C-w><C-h>
|
||||||
nnoremap <C-j> <C-w><C-j>
|
nnoremap <C-j> <C-w><C-j>
|
||||||
nnoremap <C-k> <C-w><C-k>
|
nnoremap <C-k> <C-w><C-k>
|
||||||
@@ -89,6 +93,9 @@ if (has('clipboard') || has('nvim'))
|
|||||||
vnoremap <leader>P "+P
|
vnoremap <leader>P "+P
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
" Ctrl-Backspace should delete words in insert mode.
|
||||||
|
inoremap <C-H> <C-W>
|
||||||
|
|
||||||
" Aesthetics ###################################################################
|
" Aesthetics ###################################################################
|
||||||
" Use 24-bit (true-color) mode
|
" Use 24-bit (true-color) mode
|
||||||
if (has('termguicolors'))
|
if (has('termguicolors'))
|
||||||
|
|||||||
Reference in New Issue
Block a user