update-alternatives

Set default editor in Ubuntu To change vi editor run root@backup:~# update-alternatives –config vi There are 2 choices for the alternative vi (providing /usr/bin/vi). Selection Path Priority Status ———————————————————— * 0 /usr/bin/vim.basic 30 auto mode 1 /usr/bin/vim.basic 30 manual mode 2 /usr/bin/vim.tiny 10 manual mode Press to keep the current choice[*], or type selection number: … Read more