是因为以下几种可能:
1、当前目录中没有.svn文件夹
解决方法:重新checkout这个工程,svn checkout http://xxx.xxx/xxx .
2、该文件夹中文件的格式,与当前使用的svn client的版本不兼容,比如当前使用的svn client的版本太高或太低
解决方法:卸载svn client,重新安装一个合适的版本。比如我的svn client是1.8版本的,但是我的.svn文件夹的文件的格式版本是1.7版本的(这个版本是svn server决定的),2个版本不兼容,所以就报错。
3、没有设置b:VCSCommandVCSType变量的值
let b:VCSCommandVCSType='SVN'
参考:
1、problem using VCSCommand Vim plugin with Mercurial
http://stackoverflow.com/questions/3771615/problem-using-vcscommand-vim-plugin-with-mercuria
2、The Perfect .Vimrc Vim Config File
http://spf13.com/post/perfect-vimrc-vim-config-file