当我跑步时
$git pull
我明白了:
Vim: Caught deadly signal ILL
Vim: Finished.
error: vi died of signal 4
error: There was a problem with the editor 'vi'.
Not committing merge; use 'git commit' to complete the merge.
当我跑步时
$git rebase -i HEAD~10
我明白了:
Vim: Caught deadly signal ILL
Vim: Finished.
/opt/boxen/homebrew/Cellar/git/1.8.0-boxen1/libexec/git-core/git-rebase--interactive: line 212: 40705 Illegal instruction: 4 vi "$@"
Could not execute editor
我跑步时常常出错:
$vi
但是能够通过将这些行添加到我的.bashrc中来绕过它们:
alias vi='/opt/boxen/homebrew/Cellar/vim/7.3.843/bin/vim'
alias vim='/opt/boxen/homebrew/Cellar/vim/7.3.843/bin/vim'
这会破坏我的工作流程,任何关于修复它的想法?
答案 0 :(得分:2)
所以,我解决了这个问题。至少部分地。
我的git配置编辑器,如romainl建议,需要进行编辑。由于某种原因,它指向'/opt/boxen/homebrew/Cellar/vim/7.3.843/bin/vi'的vi实例在某种程度上已被破坏。通过将此行添加到我的.gitconfig:
editor = /opt/boxen/homebrew/bin/vim
问题消失了。