键入“ git pull”,提示给出有关vim的错误提示

时间:2018-12-27 09:25:35

标签: git vim

每次我键入<script src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.7.2/angular.min.js"></script> <div ng-app="dyno"> <div ng-controller="fieldCompilation"> <br><b> Static Input:</b> <ng-form name="form1"> <div id="f1"> 1. Input <input type='text' name='input1' ng-model='input1' placeholder='input1 [0-9]{2} required' pattern='[0-9]{2}' required='true' /><br> </div> <br><b> Dynamic Inputs:</b> <div otc-dynamic> <div id="f3"> 3. Input </div> </div> <br> <b>Details</b> <div> Counter: {{ message }} </div> <div> Model Input1: {{ input1 }} </div> <div> Model input3: {{ input3 }} </div> <div> Validation input1: {{ form1.input1.$valid }}<br> Validation input3: {{ form1.input3.$valid }}<br> Validation form1: {{ form1.$valid }}<br> </div> </ng-form> </div> </div>并且回购中有一些更改时,bash都会返回错误,如下图所示。 enter image description here

因为我只是从互联网复制了vim的配置,而我不知道有关vim的配置。我该如何解决。

2 个答案:

答案 0 :(得分:1)

只需尝试:

git config --global core.editor /usr/bin/vim

或:

git config --global core.editor $(which vim)

答案 1 :(得分:1)

在Mac OS环境下,这似乎指向python安装的链接。
参见Valloric/YouCompleteMe issue 3216(提到了here):

  

我通过运行所有这些命令为我解决了这个问题(我使用pathogen.vim,因此YouCompleteMe已安装在~/.vim/bundle中)

brew install vim
cd ~/.vim/bundle/YouCompleteMe
python install.py
     

我的python --version

     

Python 2.7.15

     

而且我认为它是通过自制软件安装的:

$ which python
/usr/local/bin/python

还有一个recent macvim regression。请参见PR 812作为修复示例。