Change the ubuntu default editor to vim.

Source: Internet
Author: User
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 we enter crontab-e, the nano editor is opened by default. Anyone familiar with VIM wants to edit it by default...
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.
 
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.