Change default text editor for crontab to vim
        Posted  
        
            by 
                Max Williams
            
        on Super User
        
        See other posts from Super User
        
            or by Max Williams
        
        
        
        Published on 2011-05-10T16:13:21Z
        Indexed on 
            2012/10/01
            21:41 UTC
        
        
        Read the original article
        Hit count: 336
        
I'm using ubuntu 9.10 and the default text editor is nano, which i hate. (doesn't everyone?)
Normally it's not a problem as i just vi or gedit everything but crontab -e is opening with nano.  I tried changing it to vim using sudo update-alternatives --config editor and selecting option 3 ("/usr/bin/vim.basic").  This has changed it for sudo and non-sudo alike.  But crontab -e still opens nano.  Any ideas?  max
© Super User or respective owner