오늘, 나는 .vimrc
효과가 없다는 것을 알았 습니다. 몇 시간 전에 괜찮 았습니다.
내가 함께 정력 출시했을 때 $vim --plugin
, :scriptnames
에코 아무것도 : .vimrc
파일이 공급되지 않았습니다. (참고 : /etc/vimrc
이 문제를 해결하기 위해 제거되었습니다.)
그런 다음 Google을 시도하고 $VIMINIT
변수가 의심되었습니다.
값은 다음과 같습니다 $VIMINIT
.
$ echo $VIMINIT
set number
Vim 문서 VIMINIT
:
c. Four places are searched for initializations. The first that exists
is used, the others are ignored. The $MYVIMRC environment variable is
set to the file that was first found, unless $MYVIMRC was already set.
- The environment variable VIMINIT (see also |compatible-default|) (*)
The value of $VIMINIT is used as an Ex command line.
- The user vimrc file(s):
"$HOME/.vimrc" (for Unix and OS/2) (*)
"s:.vimrc" (for Amiga) (*)
"home:.vimrc" (for Amiga) (*)
"$VIM/.vimrc" (for OS/2 and Amiga) (*)
"$HOME/_vimrc" (for MS-DOS and Win32) (*)
"$VIM/_vimrc" (for MS-DOS and Win32) (*)
Note: For Unix, OS/2 and Amiga, when ".vimrc" does not exist,
"_vimrc" is also tried, in case an MS-DOS compatible file
system is used. For MS-DOS and Win32 ".vimrc" is checked
after "_vimrc", in case long file names are used.
Note: For MS-DOS and Win32, "$HOME" is checked first. If no
"_vimrc" or ".vimrc" is found there, "$VIM" is tried.
See |$VIM| for when $VIM is not set.
- The environment variable EXINIT.
The value of $EXINIT is used as an Ex command line.
- The user exrc file(s). Same as for the user vimrc file, but with
"vimrc" replaced by "exrc". But only one of ".exrc" and "_exrc" is
used, depending on the system. And without the (*)!
vim 문서를 완전히 이해할 수 없었습니다. 그것은 것 같다 $VIMINIT
5 월 엉망 정력의 시작을.
클리어 $VIMINIT
:
$ VIMINIT=
$ echo $VIMINIT
여전히 문제가 존재합니다.
$VIMINIT
보다 우선.vimrc
합니다. 그리고 그것은 선착순 규칙을 만족시킵니다. 따라서 그렇습니다.vimrc
.