stefandtw / quickfix-reflector.vim

Change code right in the quickfix window
MIT License
347 stars 18 forks source link

Is it possible to do multi-line edits? #21

Closed justrajdeep closed 7 years ago

justrajdeep commented 7 years ago

Hi

Great plugin!!!

This might be an enhancement request, but is it possible to add multiple lines from the qf window?

For example i want to change a single line into multiple lines from the qf window itself. Is it possible to do that?

Thanks

stefandtw commented 7 years ago

As I mentioned in issue #20, handling multiple lines in the quickfix window would probably make the code more complex, so I'm hesitant to work on that. That said, if someone made a pull request with a simple solution to allow line-breaks, I would accept it.

Meanwhile, maybe you could use the :cdo command that was added to Vim some time ago. It operates on each quickfix entry. You can add a line like this:

cdo s/$/\rnew_line/g | w

There is also the :cfdo command, which operates on every file in the quickfix list.

justrajdeep commented 7 years ago

Thanks :)