Skip to content

↑↓ moveEnter openEsc close

Delete (cut) the line in Neovim

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

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

A chord: press each combination in turn.

More Neovim shortcuts: editing

ActionMacWindowsLinux
UndoUUU
RedoCtrlRCtrlRCtrlR
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