First column of vim highlighted yellow and won't go away
-------------------------------------------------------------------------------
Become or hire the top 3% of the developers on Toptal https://topt.al/25cXVn
-------------------------------------------------------------------------------
Music by Eric Matyas
https://www.soundimage.org
Track title: Puzzling Curiosities
--
Chapters
00:00 Question
01:22 Accepted answer (Score 63)
02:00 Answer 2 (Score 4)
02:19 Thank you
--
Full question
https://superuser.com/questions/249522/f...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#linux #vim
#avk47
Become or hire the top 3% of the developers on Toptal https://topt.al/25cXVn
-------------------------------------------------------------------------------
Music by Eric Matyas
https://www.soundimage.org
Track title: Puzzling Curiosities
--
Chapters
00:00 Question
01:22 Accepted answer (Score 63)
02:00 Answer 2 (Score 4)
02:19 Thank you
--
Full question
https://superuser.com/questions/249522/f...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#linux #vim
#avk47
ACCEPTED ANSWER
Score 65
The reason it does that is because of the
set hlsearch
command and because you apparently searched for ^.
. To turn the highlighting off until the next search, execute
:nohl
or just search for something nonsensical, e.g. /alsdfkjslk
. To turn the highlighting off permanently, create your own ~/.vimrc and put this in it:
set nohlsearch
ANSWER 2
Score 4
The previous search is stored in ~/.viminfo
. You can change it in there, or use :nohl
to turn it off until the next search.