Techne

A practical knowledge base

User Tools

Site Tools


neovim-cheatsheet

NERDCommenter

Mode Keybind Action
normalSPACE + cc NERDCommenterComment
normalSPACE + c + SPACENERDCommenterToggle
normalSPACE + cm NERDCommenterMinimal
normalSPACE + cn NERDCommenterNested
normalSPACE + c$ NERDCommenterToEOL
normalSPACE + ci NERDCommenterInvert
normalSPACE + cs NERDCommenterSexy
normalSPACE + cy NERDCommenterYank
normalSPACE + cA NERDCommenterAppend
normalSPACE + cl NERDCommenterAlignLeft
normalSPACE + cb NERDCommenterAlignBoth
normalSPACE + cu NERDCommenterUncomment
normalSPACE + ca NERDCommenterAltDelims
Mode Keybind Action
normalSPACE + sh [S]earch [H]elp
normalSPACE + sk [S]earch [K]eymaps
normalSPACE + sf [S]earch [F]iles
normalSPACE + ss [S]earch [S]elect Telescope
normalSPACE + sw [S]earch current [W]ord
normalSPACE + sg [S]earch by [G]rep
normalSPACE + sd [S]earch [D]iagnostics
normalSPACE + sr [S]earch [R]esume
normalSPACE + s. [S]earch Recent Files (“.” for repeat)
normalSPACE + SPACE[ ] Find existing buffers
normalSPACE + / [/] Fuzzily search in current buffer
normalSPACE + s/ [S]earch [/] in Open Files
normalSPACE + sn [S]earch [N]eovim files
normalEsc nohlsearch

Movement

Mode KeybindAction
normalh Move cursor left
normall Move cursor right
normalj Move cursor down
normalk Move cursor up
normalCtrl-H Move focus to the left window
normalCtrl-L Move focus to the right window
normalCtrl-J Move focus to the lower window
normalCtrl-K Move focus to the upper window

Editing

Mode Keybind Action
normalsa Add surrounding
normalsd Delete surrounding
normalsr Replace surrounding
normalsf Find right surrounding
normalsF Find left surrounding
normalsh Highlight surrounding
normalShift-o Add empty line below cursor
normalShift-O Add empty line above cursor
normalSPACE + fFormat buffer
insertArrows Traverse completion menu
insertCtrl-Y Select completion

Diagnostics

Mode Keybind Action
normal]d Jump to next diagnostic in current buffer
normal]D Jump to last diagnostic in current buffer
normal[d Jump to previous diagnostic in current buffer
normal[D Jump to first diagnostic in current buffer
normalSPACE + q Open diagnostic [Q]uickfix list
normalCtrl-W + dShow diagnostics under cursor

Splits and tabs

Mode Keybind Action
command:sp Split window horizontally
command:vsp Split window vertically
command:tabeCreate a new tab
command:tabcClose the current tab
command:tabnGo to next tab
command:tabpGo to previous tab
neovim-cheatsheet.txt · Last modified: by hyperreal

Except where otherwise noted, content on this wiki is licensed under the following license: Public Domain
Public Domain