On Sat, Feb 4, 2017 at 8:14 AM, Marcus Martinez <marcus.martinez.807@gmail.com> wrote:
...
:1,10 s/^/--/
After running this command the beginning of lines 1 through 10 do have the "--" correctly placed. However, the first character of each line in the file is now highlighted (as shown in the attached image). The pattern now recurs for any text file I open with vim.
If you run :nohlsearch does that leading yellow column go?
It is showing you the last search, since ^ matches the beginning of every line, that is why it is there.
:h hlsearch
HTH,
David
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment