Open TheBB opened 9 years ago
Original comment by Frank Fischer (Bitbucket: lyro, GitHub: lyro):
Actually it is not that easy. There is a fundamental difference between block mode and char/line mode. The latter always work on consecutive character ranges, the former on several disjoint ranges. The current implementation does not support to former, yet.
I think that evil mode should do the right thing automatically for you if you have a visual block selection... it should make the substitute command only operate on the visual selection. I imagine the %V thing is because Brahm values backwards compatibility over everything so he just tacked on an option and called it a day.
Originally reported by: Anonymous
Currently search-and-replace can operate on visual lines. With (setq evil-ex-visual-char-range t) it is extended to visual characters.
If not too difficult, will it be possible to add visual block search-and-replace? Through automatic detection, vim style \%V, or any other way. Thank you.