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 line 3 was selected with visual selection and it is obvious substitute will only be affected on line 3. Is is possible to set that highlight search marks only affected (by visual mode selection) lines? Like in example letter "a" in line 3 only.
Thanks
You could anchor the match to begin in the visual selection, using \%V