How Do I Make Vi the Default Editor in Ubuntu?
Contents on Ubuntu (Or Other Debian-Based Systems), Update-Alternatives Can Be Used to Change the Default Editor: Sudo Update-Alternatives –Config Editor #...
On Ubuntu (or other Debian-based systems), update-alternatives can be used to change the default editor: sudo update-alternatives –config editor # Type the number which corresponds to Vim here (after installing it) then press Enter.
How do I make VI the default editor in Linux?
Open the . bashrc file in your preferred text editor. To set vi as the default text editor, replace program with vi. To set nano as the default text editor, replace program with nano.
Must Read
How do I change the default editor in Ubuntu command line?
Type in this command and then hit Enter: sudo update-alternatives –config editor 3. You’ll see a list of editors appear in the terminal window. 4. Select the number of the editor you want to use, then hit Enter.