我下面的nettuts easy git guidegit的承诺错误节省vimfiles
容易混帐引导我在~/
目录初始化空git的实例,然后加了我.vimrc
和我.vim/
文件。
git add .vimrc
git add .vim
但是当我做git commit
命令我最终什么似乎不相关的错误信息。
[email protected]:~> git commit
Error detected while processing /home/sayth/.vimrc:
line 203:
E319: Sorry, the command is not available in this version: py << EOF
line 204:
E492: Not an editor command: import os.path
line 205:
E492: Not an editor command: import sys
line 206:
E492: Not an editor command: import vim
line 207:
E15: Invalid expression: 'VIRTUAL_ENV' in os.environ:
line 224:
E171: Missing :endif
Press ENTER or type command to continue
如果我按回车键,我会进入一个文件。我在做什么错了。
编辑:已从.vimrc
删除virtualenv参考。从来没有注意到这个错误,因为我使用的gvim从未错过错误。
此问题与您/home/sayth/.vimrc有关。粘贴它,所以我们可以发表评论 – ssedano 2012-01-03 09:44:06
我的vimrc可能太长,不能粘贴在这里。上面编辑我从vimrc中删除了违规的virtualenv部分 – sayth 2012-01-03 12:38:14
您可以将'.vimrc'过滤到https://gist.github.com并链接到它。 – 2012-01-03 13:01:44