Modify the ubuntu Default Editor to vim. In general, the default editor under the ubuntu terminal is nano. You can directly edit a file to enable nano by default. For example, when "crontab-e" is input, the nano editor is opened by default. If anyone familiar with VIM wants the default editor to use vim, we need to modify the default editor of ubuntu. You can modify the ubuntu default EDITOR by entering echo export EDITOR =/usr/bin/vim> ~ /. Bashrc 2. Use the system management tool update-alternatives to modify the input in the terminal: www.2cto.com update-alternatives -- config editor and then select vim. basic. If only the nano and vim editors are left in the system, if we delete the nano completely, by default, the system selects vim as the default editor and enters the command to delete the nano editor on the terminal: sudo apt-get remove nano.
After the modification is complete, enter crontab-e to see if the vim editor is popular.