aboutsummaryrefslogtreecommitdiff
path: root/lua/custom-map.lua
blob: 4d88548a365b3fead31409e67d8b3246ab5ea71f (plain)
1
2
3
4
5
6
7
8
9
10
11
local keymap = vim.keymap

-- 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>')