Я звучу так, как будто какой-то файл либо получен из вашего .vimrc, либо плагины меняют это значение.
Что-то, что можно попытаться определить, это
Запустите vim без поиска чего-либо, используйте
vim -u NONE
Используя NORC
skipps .vimrc, но загружает плагины
Проверьте :help --noplugin
, чтобы прочитать о различных параметрах запуска, которые управляют источником.
--noplugin Skip loading plugins. Resets the 'loadplugins' option.
{not in Vi}
Note that the |-u| argument may also disable loading plugins:
argument load vimrc files load plugins ~
(nothing) yes yes
-u NONE no no
-u NORC no yes
--noplugin yes no
Возможно, этотакже может быть полезным (из help: :set
):
When 'verbose' is non-zero, displaying an option value will also tell where it
was last set. Example: >
:verbose set shiftwidth cindent?
< shiftwidth=4 ~
Last set from modeline ~
cindent ~
Last set from /usr/local/share/vim/vim60/ftplugin/c.vim ~
возможно ...: -)
Редактировать
Используете ли выcompatible
?От help: formatoptions
NOTE: This option is set to the Vi default value when 'compatible' is
set and to the Vim default value when 'compatible' is reset.