aboutsummaryrefslogtreecommitdiff
path: root/lua
diff options
context:
space:
mode:
authorjdhao <jdhao@hotmail.com>2022-08-15 00:22:24 +0800
committerjdhao <jdhao@hotmail.com>2022-08-15 00:22:24 +0800
commitb3b69f21f4a8d0895d751d9472f84bf780e00a75 (patch)
tree6f0d0cda6ed3f30be06ed8ba2c826520293c6bd8 /lua
parentf491e26676547f98c4830037752a6e74c99484ce (diff)
update mapping
Diffstat (limited to 'lua')
-rw-r--r--lua/custom-map.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/lua/custom-map.lua b/lua/custom-map.lua
index 7ca561d..4d88548 100644
--- a/lua/custom-map.lua
+++ b/lua/custom-map.lua
@@ -1,8 +1,11 @@
local keymap = vim.keymap
--- Go to the begining and end of current line in insert mode quickly
+-- Go to the beginning and end of current line in insert mode quickly
keymap.set('i', '<C-A>', '<HOME>')
keymap.set('i', '<C-E>', '<END>')
+-- Go to beginning of command in command-line mode
+keymap.set('c', '<C-A>', '<HOME>')
+
-- Delete the character to the right of the cursor
keymap.set('i', '<C-D>', '<DEL>')