git for windows装完,bash里面开vim提示错误信息

git for windows装完,bash里面开vim提示错误信息

$ vim

--- Autocommands ---
Error detected while processing /etc/vimrc:
line   43:
E10: \ should be followed by /, ? or &
line   44:
E10: \ should be followed by /, ? or &
line   45:
E10: \ should be followed by /, ? or &
line   46:
E10: \ should be followed by /, ? or &
line   47:
E10: \ should be followed by /, ? or &
line   48:
E10: \ should be followed by /, ? or &
line   53:
E10: \ should be followed by /, ? or &
line   54:
E10: \ should be followed by /, ? or &
E1187: Failed to source defaults.vim
Press ENTER or type command to continue
是因为没有~/.vimrc就去默认目录找配置文件就出错了,解决方法是建个~/.vimrc
posted on 2023-08-19 12:53  ww2000e  阅读(104)  评论(0编辑  收藏  举报