vimtricks.wiki Concise Vim tricks, one at a time.

How do you run a command on a specific range of lines?

Answer

:10,20d

Explanation

Specify a line range before a command. :10,20d deletes lines 10-20. Use . for current line, $ for last line, % for all lines.

Next

How do I visually select a double-quoted string including the quotes themselves?