1

Is there a way to disable vim from carrying highlighting between editing sessions?

For example, I was looking for the definition of pi (M_PI) in /usr/include/math.h and searched /PI to find ti real quick.

Now I went to edit a program that had the name of a fellow author on it, Pierre, and the Pi in Pierre was highlighted as it had carried voer from my last editing session. What would I put in my .vimrc to disable this weird continuation fo my search term?

1 Answer 1

1

You probably want this in your ~/.vimrc:

:set viminfo+=h

See:

:help viminfo-h
0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .