最近安装了ubuntu的系统,系统默认的系统是nana,因此修改下默认的编辑器:
0 1 2 3 4 5 6 7 8 9 10 11 |
$ sudo update-alternatives --config editor There are 4 choices for the alternative editor (providing /usr/bin/editor). Selection Path Priority Status ------------------------------------------------------------ *0 /bin/nano 40 auto mode 1 /bin/ed -100 manual mode 2 /bin/nano 40 manual mode 3 /usr/bin/vim.basic 30 manual mode 4 /usr/bin/vim.tiny 10 manual mode Press <enter> to keep the current choice[*], or type selection number: 3 update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/editor (editor) in manual mode |
修改完毕!!SourceByrd's Weblog-https://note.t4x.org/basic/update-alternatives-config-editor/ SourceByrd's Weblog-https://note.t4x.org/basic/update-alternatives-config-editor/
申明:除非注明Byrd's Blog内容均为原创,未经许可禁止转载!详情请阅读版权申明!