Vim - easily edit filter result
filtering, vim
Solution
Use Qfreplace http://github.com/thinca/vim-qfreplace
- add some into quickfix. ex: grep foo */
- type :Qfreplace on quickfix
- change lines as you want.
- :w
Problem
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.)