vim: add mapping to move to beginning of line in command mode

This commit is contained in:
Fernando Schauenburg 2023-07-13 20:58:47 +02:00
parent 1a2015ce57
commit 4631f93356

View file

@ -46,6 +46,9 @@ map('i', '<c-a-k>', [[<esc>:move .-2<cr>==gi]], { silent = true })
map('i', '<c-a>', '<c-o>^')
map('i', '<c-e>', '<c-o>$')
-- move to begin of line in command mode (<c-e> moves to end by default)
map('c', '<c-a>', '<c-b>')
-- navigate items in quickfix list
map('n', '<Down>', '<cmd>cnext<cr>zz', { silent = true })
map('n', '<Up>', '<cmd>cprevious<cr>zz', { silent = true })