在sudoers里加上# Set default EDITOR to vim, but allow visudo to use EDITOR/VISUAL.Defaults editor=/usr/bin/vim, env_editor