I would like to use something like vils for vim buffers.
Example:
a
b
a
b
Search for "a" (:g/a/
)
Output:
a
a
and then edit the output as if it were a normal buffer. When I'm done it should map my changes line by line back to the original buffer.
How do I do that?
PS: I could probably use :%s/../../
or something like that, but it wouldn't be nearly as comfortable as it could be. (Even if the completion in the CTRL+F buffer would work.)
Use Qfreplace http://github.com/thinca/vim-qfreplace
The feature you're talking about sounds like occure
/narrow-to-region
in emacs.
In vim, you can type this command:
:vimgrep pattern %
Then type :cw
to open the quickfix-list.
You can use mouse click or :cn
/:cp
to navigate to make changes.
As long as the matching lines span a single range of consecutive lines, the NrrwRgn plugin may work for you.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With