This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vim.cmd("au FileType go setlocal noexpandtab tabstop=4 shiftwidth=4 softtabstop=4") | |
vim.cmd("au FileType vue setlocal noexpandtab tabstop=2 shiftwidth=2 softtabstop=2") | |
-- 显示不可见字符 | |
vim.opt.list = true | |
-- 开启相对行数 | |
vim.opt.relativenumber = true | |
-- Insert Mode 时 jj 映射成 Esc | |
lvim.keys.insert_mode["jj"] = "<Esc>" | |
-- Shift + h/l 左右切换 Tab | |
lvim.keys.normal_mode["<S-l>"] = ":BufferLineCycleNext<CR>" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"vim.insertModeKeyBindings": [ | |
{ | |
"before": ["j", "j"], | |
"after": ["<Esc>"] | |
}, | |
{ | |
"before": ["j", "k"], | |
"after": ["<Esc>"] | |
} | |
], |