- type:
- $ update-alternatives --config editor
- Select which editor that you want to set as default by typing its number. For below example, vim(1) is chosen.
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhQILKU7OIq2BUSsy_aglTi2z3HzbZWCNBtEJ5L-wfbCZhzN9yjaU-xvjcJctXqs_Xv9dFjLHWg0xEfQ2hRxk1ue8Z31RU2aeJf9YH47uELeTK0TiGckb-f6IWs0tXefwHL4M0K_Gu-MP7u/s200/Screenshot-cropped.png)
Another method to do the similar task is by using command select-editor:
1. type the command
$ select-editor
Select an editor. To change later, run 'select-editor'.
1. /usr/bin/vim.tiny
2. /bin/ed
3. /bin/nano <---- easiest
Choose 1-3 [3]:
2. Choose from the list given. In the case above, if you want vim to be your default editor, type '1' and press 'enter'
3. Finish
No comments:
Post a Comment