Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

This is the error I am getting, when I do git commit --amend

Error detected while processing /root/.vimrc:
line  193:
E518: Unknown option: foldmethod=indent
line  194:
E518: Unknown option: foldlevel=99
Press ENTER or type command to continue

I know this is not related to git, but vim is working alright otherwise.

This is the vimrc I am using:

share|improve this question
What is Vim's version? – romainl Nov 8 '12 at 15:21
up vote 6 down vote accepted

probably the same issue as

which recommends

git config --global core.editor vim

share|improve this answer
Thank you! That fixed it. – Saad Rehman Shah Nov 12 '12 at 14:51

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.