デフォルトエディタを変更する

% sudo update-alternatives --config editor
Password:

There are 3 alternatives which provide `editor'.

  Selection    Alternative
-----------------------------------------------
          1    /bin/ed
*+        2    /bin/nano
          3    /usr/bin/vim.tiny

Press enter to keep the default[*], or type selection number: 3
Using `/usr/bin/vim.tiny' to provide `editor'.
%