Skip to content

↑↓ moveEnter openEsc close

Undo in Neovim

Neovim 0.11 · 56 shortcuts · checked Nov 2026 · Source: Neovim contributors docs

In Neovim, press U on Mac, Windows, Linux. Works when: normal mode.

More Neovim shortcuts: editing

ActionMacWindowsLinux
RedoCtrlRCtrlRCtrlR
Delete (cut) the lineD,DD,DD,D
Copy (yank) the lineY,YY,YY,Y
Copy (yank) to the end of the lineShiftYShiftYShiftY
Paste after the cursorPPP
Repeat the last change...
Repeat the last :s with its flagsShift7Shift7Shift7
Replay the last recorded macroShiftQShiftQShiftQ
Comment or uncomment the lineG,C,CG,C,CG,C,C
Comment or uncomment the selectionG,CG,CG,C

All 12 in editing · All 56 Neovim shortcuts