The Computer Oracle

First column of vim highlighted yellow and won't go away

--------------------------------------------------
Rise to the top 3% as a developer or hire one of them at Toptal: https://topt.al/25cXVn
--------------------------------------------------

Music by Eric Matyas
https://www.soundimage.org
Track title: A Thousand Exotic Places Looping v001

--

Chapters
00:00 First Column Of Vim Highlighted Yellow And Won'T Go Away
00:43 Accepted Answer Score 64
01:13 Answer 2 Score 4
01:24 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 64


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.