From 4631f93356641c4dbeb6844731c6eb961580d5ff Mon Sep 17 00:00:00 2001 From: Fernando Schauenburg Date: Thu, 13 Jul 2023 20:58:47 +0200 Subject: [PATCH] vim: add mapping to move to beginning of line in command mode --- config/nvim/lua/user/keymaps.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/config/nvim/lua/user/keymaps.lua b/config/nvim/lua/user/keymaps.lua index 4a73a62..4146342 100644 --- a/config/nvim/lua/user/keymaps.lua +++ b/config/nvim/lua/user/keymaps.lua @@ -46,6 +46,9 @@ map('i', '', [[:move .-2==gi]], { silent = true }) map('i', '', '^') map('i', '', '$') +-- move to begin of line in command mode ( moves to end by default) +map('c', '', '') + -- navigate items in quickfix list map('n', '', 'cnextzz', { silent = true }) map('n', '', 'cpreviouszz', { silent = true })