git commit --amend が有効な vimrc オプションを認識しない

git commit --amend が有効な vimrc オプションを認識しない

これは私が受け取ったエラーですgit commit --amend

/root/.vimrc の処理中にエラーが検出されました:
193行目:
E518: 不明なオプション: foldmethod=indent
194行目:
E518: 不明なオプション: foldlevel=99
続行するには、ENTER キーを押すかコマンドを入力してください

これは とは関係ないことはわかっていますgitが、それ以外では vim は正常に動作しています。

私が使用している vimrc は次のとおりです:https://github.com/sontek/dotfiles

答え1

おそらく同じ問題

https://stackoverflow.com/questions/11870884/vim-says-no-mouse-support-but-only-when-i-run-git-commit

推奨される

git config --global core.editor vim

関連情報