- Basic Editing
- Navigation
- LSP (TypeScript, etc.)
- Commenting
- Search & Replace
- Buffers
- Windows
- File Explorer & Projects
- Diagnostics & Git
- Miscellaneous
i– Enter Insert modeEscorCtrl-[– Exit to Normal mode<C-s>– Save file<C-q>or<leader>qq– Quit all windowsuUndo the last change<C-r>Redo the last undone changeUUndo all changes on the current line (reverts the entire line to its original state)ddDelete lineVto enter Visual Line mode, Usej / kto select multiple lines. Pressgcto toggle commentsyycopy,ppaste]dand[dto jump between diagnostics (error)<A-j>and<A-k>move line down and up (A = Alt)
h / j / k / l– Left / Down / Up / Rightgg / G– Go to top / bottom of file0 / $– Start / end of line*– Search word under cursor<C-o> / <C-i>– Jump back / forward<C-h> / <C-w>hJump to the window on the left (where the explorer usually is)<C-l> / <C-w>lJump to the window on the right (if explorer is on the right).
gd– Go to Definitiongy– Go to Type Definitiongr– Show ReferencesK– Hover info<leader>cr– Rename symbol<leader>ca– Code action
gcc– Toggle comment on linegc + visual select– Comment selected linesgco– Add comment line belowgcO– Add comment line above
/pattern + n/N– Search forward/backward<leader>sg– Search project (grep)<leader>sr– Search and replace in project
<leader>bb– Switch buffer<leader>bd– Delete buffer]b /[b– Next / Previous bufferbP– Close all unpinned buffers (default keymap)bo– Close all buffers except the current onebd– Close the current buffer (also closes the window it's in)bD– Close the current buffer and the window it's in
<leader>-– Split window horizontally<leader>|– Split window vertically<C-h/j/k/l>– Move between windows<leader>wd– Close window
<leader>e– Toggle file explorer (Neo-Tree)<leader>fp– Find projectsi– Find files/– Search text,enterto start navigating,nnext textshift+nprevious text,i,a,oto edit
]d / [d– Next / Previous diagnostic<leader>gg– Open LazyGitgb– Git blame line
<leader>l– Plugin manager<leader>l– Format file<leader>ud– Toggle diagnostics<leader>ul– Toggle line numbers<leader>uw– Toggle word wrap
Note: <leader> is typically Space. Press <leader> to open WhichKey and explore all mappings.