修改全局的git提交编辑器 http://git-scm.com/book/en/Customizing-Git-Git-Configuration $ git config --global core.editor vim