我正在按照Nettuts的易学Git指南进行操作。
我在~/
目录下初始化了一个空的Git实例,然后添加了我的.vimrc
和.vim/
文件。
git add .vimrc
git add .vim
然而,当我执行git commit
命令时,我得到了似乎与此无关的错误消息。
sayth@linux-kt34:~> 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,所以从未注意到错误。
.vimrc
文件粘贴到例如https://gist.github.com,并链接它。 - Zsolt Botykai