xiaoxiao 发表于 2016-2-9 01:19:05

Debian修改默认编辑器由nano改为vi

本帖最后由 xiaoxiao 于 2016-2-9 12:44 编辑

1:用如下命令:
update-alternatives --config editor

2:会显示:
There are 2 choices for the alternative editor (providing /usr/bin/editor).

Selection    Path               Priority   Status
------------------------------------------------------------
0            /bin/nano         40      auto mode
1            /bin/nano         40      manual mode
* 2            /usr/bin/vim.tiny   10      manual mode

Press enter to keep the current choice, or type selection number:

3:选择2即可
页: [1]
查看完整版本: Debian修改默认编辑器由nano改为vi