[转]ubuntu下git更改默认nano编辑器vim
ubuntu下使用git提交代码时,git commit时默认的编辑器是nano,
用惯了vim,所以如果修改默认编辑器,可以这样解决:
编辑 .git/config 在 core 这块,加入 editor = vim

另一种方法,全局都使用 vim 编辑器:
git config --global core.editor vim
--------------
原文链接:https://www.cnblogs.com/loulijun/archive/2012/12/20/2826728.html
参考:https://blog.csdn.net/smallerxuan/article/details/125889234
浙公网安备 33010602011771号