Skip to content

Commit 034b65a

Browse files
kj keymap to switch between insert and normal mode
1 parent 1cc6774 commit 034b65a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

init.lua

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,11 +98,18 @@ vim.g.have_nerd_font = false
9898
-- NOTE: You can change these options as you wish!
9999
-- For more options, you can see `:help option-list`
100100

101+
-- keymap for switching between normal and insert mode using kj
102+
vim.keymap.set('i', 'kj', '<Esc>', { noremap = true, silent = true })
103+
104+
--kj
105+
101106
-- Make line numbers default
102107
vim.o.number = true
108+
vim.o.relativenumber = true
103109
-- You can also add relative line numbers, to help with jumping.
104110
-- Experiment for yourself to see if you like it!
105111
-- vim.o.relativenumber = true
112+
--
106113

107114
-- Enable mouse mode, can be useful for resizing splits for example!
108115
vim.o.mouse = 'a'

0 commit comments

Comments
 (0)