threads / discuss / 20173

vimrc

Subject: vimrc

## tl;dr

2 messages between Jul 21, 2009 and Jul 21, 2009.

replies: 1people: 2as markdown or json

Roald de Vries· Jul 21, 2009, 10:09 UTC · lore
Hi all,
I have my ~/.vimrc in a repository, and if I commit something, I get:
$ git commit
Error detected while processing /home/rdv/.vimrc:
line   11:
E518: Unknown option: foldmethod=indent
line   12:
E518: Unknown option: foldlevel=10
line   13:
E518: Unknown option: foldcolumn=4
line   16:
E538: No mouse support: mouse=a
Anybody knows why? It doesn't seem to break anything, but still...
Kind regards, Roald
Luciano Rocha· Jul 21, 2009, 10:20 UTC · re: Roald de Vries · lore

Re: vimrc

On Tue, Jul 21, 2009 at 12:09:33PM +0200, Roald de Vries wrote:
Show 16 quoted lines
>  Hi all,
> 
>  I have my ~/.vimrc in a repository, and if I commit something, I get:
> 
>  $ git commit
>  Error detected while processing /home/rdv/.vimrc:
>  line   11:
>  E518: Unknown option: foldmethod=indent
>  line   12:
>  E518: Unknown option: foldlevel=10
>  line   13:
>  E518: Unknown option: foldcolumn=4
>  line   16:
>  E538: No mouse support: mouse=a
> 
>  Anybody knows why? It doesn't seem to break anything, but still...
Your $EDITOR (by default vi) doesn't support those directives in .vimrc.
Try EDITOR=vim git commit ...
If it works, set export EDITOR=vim in your .bashrc.

Regards, Luciano Rocha

-- 
Luciano Rocha <luciano@eurotux.com>
Eurotux Informática, S.A. <http://www.eurotux.com/>

← back to recent threads