View this PageEdit this PageUploads to this PageVersions of this PageHomeRecent ChangesSearchHelp Guide

Cambiar el editor por defecto en Debian (nano por vi), con update-alternatives

Según este artículo, basta hacer lo siguiente:

salchicha:/home/dario# update-alternatives --config editor

There are 4 programs which provide `editor'.

  Selection    Command
-----------------------------------------------
      1        /bin/ae
      2        /usr/bin/vim
      3        /usr/bin/xemacs21
*+    4        /usr/bin/nedit

Enter to keep the default[], or type selection number: 2
Using `/usr/bin/vim' to provide `editor'.
salchicha:/home/dario# 

Otros comandos interesantes


Ver el estado actual
 salchicha:/home/dario#  update-alternatives --display editor