mirror of
https://github.com/jdhao/nvim-config.git
synced 2025-06-08 14:14:33 +02:00
add lua map module and more mappings
This commit is contained in:
parent
934ef7fb13
commit
e3b15da059
@ -193,3 +193,6 @@ function! s:restore_cursor() abort
|
|||||||
silent! normal `y
|
silent! normal `y
|
||||||
silent! delmarks y
|
silent! delmarks y
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
" for mappings defined in lua
|
||||||
|
lua require('custom-map')
|
||||||
|
|||||||
8
lua/custom-map.lua
Normal file
8
lua/custom-map.lua
Normal file
@ -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>')
|
||||||
Loading…
x
Reference in New Issue
Block a user