LazyVim Command / Keybinding
<leader> default= space<leader>gg= lazygit<ctrl-o>got to last buffer (could be file explorer or last cursor location):! ls -alexample of running terminal command in vim<leader>-to split panel hotizontally<leader>|to split panel vertically:Lazyto show lazy vim package manager’s GUI<leader>uDtoggle dimming<leader>wztoggle zen mode<leader>wZtoggle zoom mode<leader>spaceusing telescope to file file<leader>,open other batch/cache file<leader>srreplace using grug-far
Vim Motion / Keybinding
Here I will keep some of the vim motion & keybinding. (meanwhile I will keep updating this to remove those that I got very familiar, and add those that I found useful along the journey):
o/O: add cursor above/below current line==: fixing indentation for current line=ap: fixing indentation for current paragraph (the inner-most function-like scope structure under cursor)yyp: copy current line and paste the line below1 2 3yyp # yy: yank current line into default register # p: paste the default register into the next line (the line below current cursor)Vyp: copy current line and paste the line below1 2 3 4Vyp # V: enter visual line mode # y: yank the current selected line (by default you will be selecting the current line) # p: paste the default register into the next line (the line below current cursor)di": delete inside the quotation mark (similarly there’sdi[,di{etc)1 2 3 4di" # d: stands for delete # i: stands for inside # ": is the identifier, here is the quotation mark "da": delete quotation mark and its inside cotnent (similarly there’sda[,da{etc)1 2 3da" # d: stands for delete # a: stands for alldi"
d: stands for delete
i: stands for inside
“: is the identifier, here is the quotation mark "
1# ": is the identifier, here is the quotation mark "
Vim Command
Here I will keep some of the vim commands (stuff run via :, “Enter ⏎”):
:e!: reverting file to the last save version:Ex: exit to current file’s working directory (or folder)