From e3b15da059dd9bd7a363a7f88b0e2f10772b676f Mon Sep 17 00:00:00 2001 From: jdhao Date: Sun, 29 May 2022 12:27:26 +0800 Subject: [PATCH] add lua map module and more mappings --- core/mappings.vim | 3 +++ lua/custom-map.lua | 8 ++++++++ 2 files changed, 11 insertions(+) create mode 100644 lua/custom-map.lua 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', '', '') +keymap.set('i', '', '') + +-- Delete the character to the right of the cursor +keymap.set('i', '', '')