Indent without losing v

This commit is contained in:
Oliver Hartmann 2021-09-12 20:54:33 +02:00
parent 2812ea2b2b
commit cb972476a7

View File

@ -29,10 +29,8 @@ utils.map('i', '<C-F2>', '<Esc>:vsplit .<CR>')
utils.map('n', '<S-F2>', ':split .<CR>') utils.map('n', '<S-F2>', ':split .<CR>')
utils.map('i', '<S-F2>', '<Esc>:split .<CR>') utils.map('i', '<S-F2>', '<Esc>:split .<CR>')
utils.map('n', '<C-S>', ':wa<CR>') utils.map('n', '<C-S>', ':wa<CR>')
-- Linewrap and jumping -- Linewrap and jumping
utils.map('n', 'k', 'gk') utils.map('n', 'k', 'gk')
utils.map('n', 'j', 'gj') utils.map('n', 'j', 'gj')
@ -51,5 +49,8 @@ utils.map('v', '<Down>', 'gj')
utils.map('v', '<Home>', 'g<Home>') utils.map('v', '<Home>', 'g<Home>')
utils.map('v', '<End>', 'g<End>') utils.map('v', '<End>', 'g<End>')
utils.map('v', '<', '<gv')
utils.map('v', '>', '>gv')
-- Highlight word under cursor -- Highlight word under cursor
utils.map('n', 'ü', ":exec 'match Search /\\V\\<' . expand('<cword>') . '\\>/'<CR>") utils.map('n', 'ü', ":exec 'match Search /\\V\\<' . expand('<cword>') . '\\>/'<CR>")