1. 使用系统管理工具update-alternatives来修改编辑器(ubuntu默认使用nano,我想改成vim) 在终端输入: update-alternatives --config editor 然后选择vim.basic这项即可