I know that with Vim\'s substitution command you can specific a range of lines:
:12,24s/search/replace
I want to be able to specify a range
Keep using the substitution command, but append the gc
flags to your original example.
:12,24s/search//gc
From :help search-range
[To search within a range] use the ":substitute" command with the 'c' flag.
Example:
:.,300s/Pattern//gc
This command will search from the cursor position until line 300 for "Pattern". At the match, you can type 'q' to stop, or 'n' to find the next match.