From 3d4c60b281bca21e0acca8638a97887a08a86a21 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Fri, 12 May 2023 09:55:17 +0300 Subject: [.vimrc/s/m] Added C-hljk mapping for split nav, disabled arrows, changed = to |, added K mapping --- .vim/startup/mappings.vim | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/.vim/startup/mappings.vim b/.vim/startup/mappings.vim index 001589a..1eb4a30 100644 --- a/.vim/startup/mappings.vim +++ b/.vim/startup/mappings.vim @@ -60,6 +60,15 @@ xnoremap j (v:count == 0 ? 'gj' : 'j') " nnoremap o o " nnoremap O O +" Thanks https://github.com/drzel/vim-split-line +nnoremap K :keep s/\s*\%#\s*/\r/e noh + +" Better resizing when navigating splits +nnoremap l= +nnoremap h= +nnoremap j= +nnoremap k= + " Ctrl-Backspace deletes the previous word in insert mode. inoremap cnoremap @@ -73,7 +82,7 @@ nnoremap :mksession! .vim-session nnoremap :call gitblame#echo() " Open lazygit in a new tab with = -nnoremap = :tab ter ++close lazygit +nnoremap \| :tab ter ++close lazygit " Tab navigtion execute "set =\eo" @@ -85,6 +94,16 @@ nnoremap gt inoremap gt tnoremap gt +" Arrows = bad +inoremap +inoremap +inoremap +inoremap +nnoremap +nnoremap +nnoremap +nnoremap + " Cyrillic (Bulgarian yawerty layout) support ca в w ca ва wa -- cgit v1.2.3