kj keymap to switch between insert and normal mode
This commit is contained in:
parent
1cc6774876
commit
034b65a729
7
init.lua
7
init.lua
|
|
@ -98,11 +98,18 @@ vim.g.have_nerd_font = false
|
|||
-- NOTE: You can change these options as you wish!
|
||||
-- For more options, you can see `:help option-list`
|
||||
|
||||
-- keymap for switching between normal and insert mode using kj
|
||||
vim.keymap.set('i', 'kj', '<Esc>', { noremap = true, silent = true })
|
||||
|
||||
--kj
|
||||
|
||||
-- Make line numbers default
|
||||
vim.o.number = true
|
||||
vim.o.relativenumber = true
|
||||
-- You can also add relative line numbers, to help with jumping.
|
||||
-- Experiment for yourself to see if you like it!
|
||||
-- vim.o.relativenumber = true
|
||||
--
|
||||
|
||||
-- Enable mouse mode, can be useful for resizing splits for example!
|
||||
vim.o.mouse = 'a'
|
||||
|
|
|
|||
Loading…
Reference in New Issue