vim: add mapping to move to beginning of line in command mode
This commit is contained in:
parent
1a2015ce57
commit
4631f93356
1 changed files with 3 additions and 0 deletions
|
@ -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-a>', '<c-o>^')
|
||||||
map('i', '<c-e>', '<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
|
-- navigate items in quickfix list
|
||||||
map('n', '<Down>', '<cmd>cnext<cr>zz', { silent = true })
|
map('n', '<Down>', '<cmd>cnext<cr>zz', { silent = true })
|
||||||
map('n', '<Up>', '<cmd>cprevious<cr>zz', { silent = true })
|
map('n', '<Up>', '<cmd>cprevious<cr>zz', { silent = true })
|
||||||
|
|
Loading…
Add table
Reference in a new issue