description | key | |
---|---|---|
go to prev tab | H | |
go to next tab | L | |
close tab | :bd | map to cmd+w |
go to defination | gd | |
comment code | gc , gcc | |
search file | <leader><leader> | |
search keyword | <leader>/ | install ripgrep |
keymaps
~/.config/nvim/lua/config/keymaps.lua
keymaps.lua
local opts = { noremap = true, silent = true }
local keymap = vim.api.nvim_set_keymap
-- Insert
keymap("i", "jj", "<ESC>", opts)