diff options
| author | jdhao <jdhao@hotmail.com> | 2022-05-29 12:27:26 +0800 |
|---|---|---|
| committer | jdhao <jdhao@hotmail.com> | 2022-05-29 12:27:26 +0800 |
| commit | e3b15da059dd9bd7a363a7f88b0e2f10772b676f (patch) | |
| tree | 1953fba0fd98922bfcef688c938575489d45bb42 /lua | |
| parent | 934ef7fb13574e5debc20a46740ad351e4e87397 (diff) | |
add lua map module and more mappings
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/custom-map.lua | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lua/custom-map.lua b/lua/custom-map.lua new file mode 100644 index 0000000..7ca561d --- /dev/null +++ b/lua/custom-map.lua @@ -0,0 +1,8 @@ +local keymap = vim.keymap + +-- Go to the begining and end of current line in insert mode quickly +keymap.set('i', '<C-A>', '<HOME>') +keymap.set('i', '<C-E>', '<END>') + +-- Delete the character to the right of the cursor +keymap.set('i', '<C-D>', '<DEL>') |
