My configuration is based on nvchad, which is a great framework and highly recommended to get to know.
It is recommended that those who are able to do so can configure themselves through this framework.
我在Bilibili的教学视频:BV1XY411H71M
Install it & it's plugins with:
git clone https://github.com/Eatsolx/nvim-lua
cd nvim-lua
sh install.sh
It will backup your original configuration to ~/.config/NVIM.BAK
If you encounter nvim-treesitter error when using please refer to -> this.
Action | Key |
---|---|
save file | ctrl + s |
exit | ctrl + q |
close buffer | space + x |
new buffer | shift + t |
new tab | ctrl + t + b |
theme toggler | space + t + h |
scroll up | ctrl + b |
scroll down | ctrl + f |
scroll up(half) | ctrl + u |
scroll down(half) | ctrl + d |
Action | Key |
---|---|
backward | ctrl + h |
end of line | ctrl + e |
forward | ctrl + l |
next line | ctrl + j |
prev line | ctrl + k |
top of line | ctrl + a |
Action | Key |
---|---|
moveLeft | ctrl + h |
moveRight | ctrl + l |
moveUp | ctrl + k |
moveDown | ctrl + j |
Action | Key |
---|---|
esc termmode | jk |
esc hide termmode | JK |
pick term | space + W |
new horizontal | space + h |
new vertical | space + v |
new window | space + w |
update nvchad | space + u + u |
Action | Key |
---|---|
BUFFERLINE | |
next buffer | tab |
prev buffer | shift + tab |
-------------------------- | --------------- |
DASHBOARD | |
bookmarks | space + b + m |
new file | space + f + n |
open | space + d + b |
find file | space + f + f |
session load | space + l |
session save | space + s |
-------------------------- | --------------- |
BETTER ESCAPE | |
esc insertmode | jk |
-------------------------- | --------------- |
FILE TREE/EXPLORER | |
toggle | Alt + t |
focus | space + e |
universal code formatter | |
format | space + f + m |
-------------------------- | --------------- |
TABLE-MODE | |
toggle | space + t + m |
-------------------------- | --------------- |
MARKDOEN PREVIEW | |
toggle | Alt + r |
-------------------------- | --------------- |
OTHER | |
undotree | Alt + u |
vista | Alt + f |
visual-multi | ctrl + n |
file-build | F8 |
file-run | F9 |
file-run & build | F10 |