仅列出标题 列出摘要

git 提交运用vim编辑器

 git  commit -m 默认使用nano,觉得不爽,改成vim吧。在 .gitconfig (在根目录下)的  [core] 段中加上 editor=vim 。

或:$git config --global core.editor vim

执行完这条命令后,可以去查看git的配置文件.gitconfig,该配置文件在家目录下面。 

   $ cat .gitconfig 

   [core] 

       editor = vim

posted on 2014-03-22 00:46  baoyiluo  阅读(967)  评论(0编辑  收藏  举报