I recently upgraded vim for the first time in 5 years. Now, when I type in a search expression, the cursor in the buffer changes position with each key stroke to highlight a potential match. I want to disable this because it prevents me from using <Ctrl-r><Ctrl-w>
to yank in the word where I positioned the cursor just before beginning a search.
What is the option for disabling the movement of the cursor when typing in a search expression?
.vimrc
file? Than Vim would start reading the defaults.vim (:h defaults.vim
, for how to disable loading it). Otherwise, Vim shouldn't mysteriously have set it, if it didn't do it beforeincsearch
oris
in it. But there have been many changes since the upgrade. I haven't tracked them all down. For example, I find that now I have to explicitly setscrolloff
to zero, which used to be default. Also had to track down how to avoid automatic indentations that are specific to the source code language of the file being editted. Theincsearch
option is just one of many things that seem to have different defaults.