kj keymap to switch between insert and normal mode

This commit is contained in:
NikhilTirunagiri 2025-11-26 16:36:51 -05:00
parent 1cc6774876
commit 034b65a729
1 changed files with 7 additions and 0 deletions

View File

@ -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'