vim: add a couple of useful mappings

This commit is contained in:
Fernando Schauenburg 2022-10-12 22:28:00 +02:00
parent 137028ae6e
commit 12c0d33b22

View file

@ -8,6 +8,15 @@ map('n', 'k', 'gk')
map('v', '>', '><cr>gv')
map('v', '<', '<<cr>gv')
-- more intuitive increment/decrement
map('n', '+', '<c-a>')
map('n', '-', '<c-x>')
map('v', '+', 'g<c-a>')
map('v', '-', 'g<c-x>')
-- select all
map('n', '<c-a>', 'gg<s-v>G')
-- easier window navigation
map('n', '<c-j>', '<c-w>j')
map('n', '<c-k>', '<c-w>k')