Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1320013
  • 博文数量: 482
  • 博客积分: 13297
  • 博客等级: 上将
  • 技术积分: 2890
  • 用 户 组: 普通用户
  • 注册时间: 2009-10-12 16:25
文章分类

全部博文(482)

文章存档

2012年(9)

2011年(407)

2010年(66)

分类: LINUX

2011-09-15 11:33:50


Favicon
vimrc 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
| |
| 21 Jul 12:20
Favicon
Re: vimrc On Tue, Jul 21, 2009 at 12:09:33PM +0200, Roald de Vries wrote:
> 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 eurotux.com>
Eurotux Informática, S.A. <>



阅读(2037) | 评论(0) | 转发(0) |
0

上一篇:Git学习教程

下一篇:Pro Git

给主人留下些什么吧!~~