From eedb9b8e2eb0561cb93b76d8faf94dac10e208ed Mon Sep 17 00:00:00 2001 From: Fernando Schauenburg Date: Mon, 30 Jan 2023 18:47:36 +0100 Subject: [PATCH] nvim: keymap to move to begin/end of line in command line mode --- config/nvim/lua/user/keymaps.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/config/nvim/lua/user/keymaps.lua b/config/nvim/lua/user/keymaps.lua index 76c6209..ce42e51 100644 --- a/config/nvim/lua/user/keymaps.lua +++ b/config/nvim/lua/user/keymaps.lua @@ -48,9 +48,11 @@ map('v', '', [[:move '<-2gv=gv]], { silent = true }) map('i', '', [[:move .+1==gi]], { silent = true }) map('i', '', [[:move .-2==gi]], { silent = true }) --- move to begin/end of line in insert mode +-- move to begin/end of line in insert & command line mode map('i', '', '^') map('i', '', '$') +map('c', '', '') +map('c', '', '') -- navigate items in quickfix list map('n', 'j', 'cnext',{ silent = true })