{ claus.conrad }

Neovim

Shortcuts

  • Remember that Neovim is very customizable, so any shortcuts shown here might not be configured in your installation.
ShortcutIn modeFunction
:NORMALSwitch to COMMAND-LINE mode
/NORMALSearch
%NORMALMove to matching bracket
^NORMALMove to the first non blank character on the current line
<number>+GNORMALMove to line <number>
$NORMALMove to the end of the current line
0NORMALMove to the beginning of the current line
1G, 1ggNORMALMove to first line
aNORMALSwitch to INSERT mode after the current character
ANORMALSwitch to INSERT mode after the end of the current line
bNORMALMove to previous word (“backwards”)
c+motionNORMALChange text
Ctrl+Alt+VINSERTPaste
Ctrl+DNORMALMove half a screen downward
Ctrl+rNORMALRedo
Ctrl+uNORMALMove half a screen upward
d+motionNORMALDelete
ddNORMALDelete line
Esc, Ctrl+CAny except NORMALSwitch back to NORMAL mode
ggNORMALGo to the beginning of the file
GNORMALGo to the end of the file
hNORMAL⬅️ Move cursor left
iNORMALSwitch to INSERT mode before the current character
jNORMAL⬇️ Move cursor down
kNORMAL⬆️ Move cursor up
lNORMAL➡️ Move cursor right
nNORMALNext search result
NNORMALPrevious search result
oNORMALOpen a new line below the current and switch to INSERT mode
ONORMALOpen a new line above the current and switch to INSERT mode
qCOMMAND-LINEQuit
q!COMMAND-LINEQuit without saving
rNORMALReplace one character
Shift+GNORMALMove to end of document
uNORMALUndo
vNORMALSwitch to VISUAL mode
wNORMALMove to next word
wCOMMAND-LINE“Write” (save)
wqCOMMAND-LINE“Write” (save) and quit
xNORMALDelete character under cursor
y+motionNORMAL“Yank” (copy)

FAQ

![[r.dev.building-your-mouseless-development-environment.notes#First Steps In Neovim]]

Resources

Learning

  • The Only Video You Need to Get Started with Neovim - YouTube
  • Zero to IDE with LazyVim - YouTube

Plugins