1. Use the system management tool update-alternatives to modify the editor (ubuntu uses nano by default, I want to change it to vim) and
type in the terminal:
update-alternatives --config editor
and then select vim.basic
type in the terminal:
update-alternatives --config editor
and then select vim.basic