2
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

E1187: Failed to source defaults.vim が出ないようにする

Posted at

E1187: Failed to source defaults.vim が出ないようにする

いつの頃からか、Cygwin のパッケージをアップデートしたら以下のようなエラーが出るようになっていたのを対応したメモ.

$ vi
E1187: Failed to source defaults.vim
Press ENTER or type command to continue

ググって出てきた対応法を実施したが直らない. 何度か設定ファイル名が変わっているのだろうか?

どうやら vi --version で設定ファイルの現在の正しいパスが出力されるようだ,

$ vi --version
VIM - Vi IMproved 8.2 (2019 Dec 12, compiled Feb 13 2022 22:07:03)
~~~ 中略 ~~~
   system vimrc file: "/etc/virc"
     user vimrc file: "/home/Marco/.virc"
 2nd user vimrc file: "~/.vim/.virc"
      user exrc file: "$HOME/.exrc"
       defaults file: "$VIMRUNTIME/defaults.vim"
  fall-back for $VIM: "/usr/share/vim"
~~~ 後略 ~~~

というわけで以下で解決.

$ mkdir ~/.vim
$ mv ~/.vimrc ~/.vim/.virc
2
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?