aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--core/mappings.vim3
-rw-r--r--lua/custom-map.lua8
2 files changed, 11 insertions, 0 deletions
diff --git a/core/mappings.vim b/core/mappings.vim
index bb53038..c219614 100644
--- a/core/mappings.vim
+++ b/core/mappings.vim
@@ -193,3 +193,6 @@ function! s:restore_cursor() abort
silent! normal `y
silent! delmarks y
endfunction
+
+" for mappings defined in lua
+lua require('custom-map')
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>')