如何在ubuntu中设置visudo的默认编辑器
在sudoers里加上
# Set default EDITOR to vim, but allow visudo to use EDITOR/VISUAL.
Defaults editor=/usr/bin/vim, env_editor
在sudoers里加上
# Set default EDITOR to vim, but allow visudo to use EDITOR/VISUAL.
Defaults editor=/usr/bin/vim, env_editor