🔥17~25ms startup time, with 51 plugins.

git clone https://github.com/Laughing-q/nvim.git ~/.config/nvim
cd ~/.config/nvim
./install.sh# for code formatting and check
yay -S black yapf stylua luacheck shfmt shellcheck
yay -S clang-format-all-git
pip install cmakelang
sudo npm install --global prettier
yay -S ripgrepI'm not a native vim user, I'm used to using direction keys to move instead of hjkl(but maybe I'll be there soon), so my keymappings are based on i(Up)、k(Down)、l(Right)、j(Left) for now.
If you guys want hjkl style, just checkout branch hjkl. I actually don't test it all, but it will work.
-
base
shortcut action Equivalent mode iup knvkdown jnvlright lnvjleft hnvhinsert invI(deprecated)faster up move 5invK(deprecated)faster down move 5knvL(deprecated)faster right move 5lnvJ(deprecated)faster left move 5jnvHmove cursor to start of line and insert Invaltjleft <Left>ialtlright <Right>ialtiup <Up>ialtkdown <Down>ictrleMove the view port down 5 lines without moving the cursor ctrl+envctrlyMove the view port up 5 lines without moving the cursor ctrl+ynvOMove to next line and keep normal mode O<ESC>nQQuit :q<CR>nSSave :w<CR>nctrllend of line $,<End>nvictrljstart of line 0,<ESC>Invi -
move line
shortcut action mode altimove current line to up nvaltkmove current line to down nv -
terminal
shortcut action mode telopen terminal right ntekopen terminal below njkescape the terminal t -
indent
shortcut action mode <Un-indentnv>indentnv -
resize arrows
shortcut action mode <Up>resize the arrows n<Down>resize the arrows n<Left>resize the arrows n<Right>resize the arrows n -
window move
shortcut action mode <leader>wmove to previous window n<leader>lmove to right window n<leader>jmove to left window n<leader>kmove to bottom window n<leader>imove to top window n -
others
shortcut action mode <ESC>set nohighlight n\pcurrent file path n\wcurrent work path n<leader>ssset spell n<leader>swset wrap n<leader>rcompile code(python ...) n<leader>ofold code n
| shortcut | action | mode | plugins |
|---|---|---|---|
R |
open rnvimr | n |
rnvimr |
gy |
goyo | n |
goyo |
gw |
swith false and true |
n |
antovim |
U |
Undo tree | n |
undotree |
<leader> c |
comment | n v |
Comment.nvim |
<leader> v |
toggle function and variable list | n |
vista.vim |
-
buffers
shortcut action mode <leader>bgpick a buffer n<leader>bbprevious buffer n<leader>bwwipeout current buffer n<leader>bcclose all buffers but current n<leader>bpclose all buffers but pinned n<leader>bjclose all left buffers n<leader>blclose all right buffers n<leader>bdsort buffers by dir n<leader>bLsort buffers by language naltlnext buffer naltjprevious buffer nalt;move current buffer to next nalthmove current buffer to previous nalt1first buffer nalt2second buffer n -
Packer
shortcut action mode <leader>pcpacker compile n<leader>pipacker install n<leader>pspacker sync n<leader>pSpacker status n<leader>pupacker update n -
Git
shortcut action mode <leader>gknext hunk n<leader>giprevious hunk n<leader>glblame n<leader>gppreview hunk n<leader>grreset hunk n<leader>gRreset buffer n<leader>gsstage hunk n<leader>guundo stage hunk n<leader>goopen change file n<leader>gbcheckout branch n<leader>gccheckout commit n<leader>gCcheckout commit(for current file) n<leader>gdgit diff n -
LSP
shortcut action mode <leader>LLopen LSP n<leader>Llclose LSP n<leader>Lacode action n<leader>Lddocument diagnostics n<leader>Lwworkspace diagnostics n<leader>Lfformat n<leader>LhLspInfo n<leader>Lknext diagnostic n<leader>Liprevious diagnostic n<leader>Lqquickfix n<leader>Lrrename n<leader>Lsdocument symbols n<leader>LSworkspace symbols n -
Telescope(finder)
shortcut action mode <leader>fffind file n<leader>fofind old file n<leader>fafind hidden file n<leader>fwfind word n<leader>fsfind spell n<leader>fnfind work in current buffer n<leader>fjfind word under the cursor n<leader>fbfind buffers n<leader>fCfind colorscheme n<leader>fMfind man page n<leader>fhfind help n<leader>frfind register n<leader>fkfind keymappings n<leader>fcfind commands n<leader>fpfind projects n<leader>fyfind clipboard n -
faster jump
shortcut action mode Ksearch char and jump nIsearch char and jump(reverse) n -
nvimtree
shortcut action mode <leader>eopen nvimtree(focus) nctrlnnvimtree n -
markdown
shortcut action mode <leader>mmtoggle table mode in markdown file n<leader>mggenerate catalog for markdown file n -
<leader>=<space> -
More details see mappings.lua and which-key.lua



