You can see that the option we want is 3 vim.basic which after selecting will change the default from nano to vim. Press to keep the current choice, or type selection number: There are 4 choices for the alternative editor (providing /usr/bin/editor). Option 1) change the editor interactively. If like me you would rather use vim when making these changes here’s how to change the default.Ĭhange Ubuntu’s default editor with update-alternatives. By default, Ubuntu opens these files in nano which I find bothersome. These tools will check your syntax prior to committing changes to the file that could break your system. When making changes to sudoers, passwd, or group files you should really be using the built-in tools visudo, vipw, and vigr. What more could you ask for? I’d like to ask that nano lose its privileged status as the default text editor! It has long term support releases, more packages than you would ever need, free online unattended patching, and you always have an in-place upgrade path to the next LTS version.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |