Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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: https://github.com/sontek/dotfiles

share|improve this question
    
What is Vim's version? –  romainl Nov 8 '12 at 15:21
add comment

1 Answer

up vote 1 down vote accepted

probably the same issue as

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

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
add comment

Your Answer

 
discard

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.