To change the default editor for your ubuntu machine, here is the step:
- 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.
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