COMMAND:g/^$/,/./-j
-- NORMAL --█
one vim trick
every morning
A single vim trick published every weekday, explained keystroke by keystroke. The kind of thing you would have worked out eventually, but faster. No accounts, no tracking, no cookies, nothing for sale.
this week / 007 entriesall 025 →
COMMAND:%s/<C-r><C-w>/
Put the word under the cursor into a colon command without retyping it
V-BLOCK<C-v>2j>
Push a column of trailing comments to the right without touching the code
VISUAL:'<,'>norm I#
Run the same edit on every selected line, wherever each line starts
VISUALVr=
Underline a heading with a row of equals signs exactly as long as the title
INSERT<C-x><C-f>
Complete a file path while you type it
NORMALdt,