The git submission code under ubutun is modified to the VIM editor

When git submit code under Ubuntu, the default editor of the terminal is nano. Engineers who may be accustomed to VIM see that a bunch of options are not very convenient to use. It is better to use Vim to add comments to submit code git commit -a. The setting method is very simple, only need to modify a configuration we can do it.

The steps are as follows:

echo export EDITOR=/usr/bin/vim >> ~/.bashrc 

When you restart the terminal and submit the code, it will use VIM editing by default.

Guess you like

Origin blog.csdn.net/u012308586/article/details/108357812