aboutsummaryrefslogtreecommitdiff
path: root/lua
diff options
context:
space:
mode:
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>')