Y | yank to the end of the line (y$) | Line shortcuts: dd, cc, D, C, J and friends |
{Visual}* | search for the selected text | Rename one at a time: *, n and cgn |
{Visual}@a | linewise Visual: run register a on each selected line | Run a macro on many lines: :normal @a |
"aY | yank to the end of the line into register a | Edit a macro as text |
Y | yank from the cursor to the end of the line (y$) | What Neovim changes: Y and saner defaults |
{count}<C-a> | add count to the number at or after the cursor (007 is decimal) | What Neovim changes: Y and saner defaults |
{count}<C-x> | subtract count from the number at or after the cursor | What Neovim changes: Y and saner defaults |
<C-l> | redraw and clear search highlighting | What Neovim changes: Y and saner defaults |
[<Space> | add [count] empty lines above the cursor line | Room to breathe: [<Space> and ]<Space> |
]<Space> | add [count] empty lines below the cursor line | Room to breathe: [<Space> and ]<Space> |
gcc | toggle comments on [count] lines | Comment lines: gcc and gc{motion} |
gc{motion} | toggle comments on the lines {motion} covers | Comment lines: gcc and gc{motion} |
{Visual}gc | toggle comments on the selected lines | Comment lines: gcc and gc{motion} |
gcgc | uncomment the comment block around the cursor | Comment blocks: gcgc, dgc and ygc |
dgc | delete the comment block around the cursor | Comment blocks: gcgc, dgc and ygc |
ygc | yank the comment block around the cursor | Comment blocks: gcgc, dgc and ygc |
{Visual}gc | toggle comments on the selected lines | Comment blocks: gcgc, dgc and ygc |
{Visual}* | search forward for the selected text | Search for the selection: Visual * and # |
{Visual}# | search backward for the selected text | Search for the selection: Visual * and # |
& | repeat the last :s on this line, keeping its flags (:&&) | &: repeat the last substitution |
{count}& | repeat it on count lines from the cursor | &: repeat the last substitution |
Q | replay the last recorded register [count] times | Q: replay the last recording |
{Visual}Q | linewise Visual: replay it once on each selected line | Q: replay the last recording |
{Visual}@{reg} | linewise Visual: run register {reg} on each selected line | Q: replay the last recording |