Re: How to set highlight search to be displayed in only lines affected by substitute c-confirm flag?

2017-10-03 Thread Ben Fritz
On Wednesday, September 27, 2017 at 8:02:28 AM UTC-5, Igor Forca wrote: > Hi, > 1. create text file with the following three lines: > aa > ab > ac > > 2. turn on search highlight with: > :set hls > > 3. now jump to third row: > :3 > > 4. visually select whole line: > V > > 5. Now do the substit

How to set highlight search to be displayed in only lines affected by substitute c-confirm flag?

2017-09-27 Thread Igor Forca
Hi, 1. create text file with the following three lines: aa ab ac 2. turn on search highlight with: :set hls 3. now jump to third row: :3 4. visually select whole line: V 5. Now do the substitute with "c" flag (confirm): :s/a/x/gc Now highlight search marks letter a in whole file, despite only