Setting vim to be the default editor

Every time I install Ubuntu I end up struggling with changing the default editor to use vi or vim.
If only I’d found this page before!
So simple!
All you have to do is run (as root):
update-alternatives --config editor

By Michele Neylon

Michele is founder and CEO of Irish hosting provider and domain name registrar Blacknight.

4 comments

  1. I’ve never really gotten a handle on Vi/Vim or the alternative ones. I’ve been sticking to plain old pico, or when needed xemacs.
    Can anyone recommend a good Vi intro sheet ?

Leave a comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Exit mobile version