Home > Desktop, Linux, Servers > Howto set default editor for mc in Debian 5.0 Lenny

Howto set default editor for mc in Debian 5.0 Lenny

Run:

apt-get install vim-nox

and then:

update-alternatives --config editor
and select vim-nox:
evil:/tmp/# update-alternatives --config editor

There are 4 alternatives which provide `editor'.

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

Press enter to keep the default[*], or type selection number: <-- 4
Using '/usr/bin/vim.nox' to provide 'editor'.
evil:/tmp/#

Choose the one you like most, voila.
Shoud work on ubuntu and other derivates too.

Categories: Desktop, Linux, Servers Tags: , , ,
  1. No comments yet.
  1. No trackbacks yet.
You must be logged in to post a comment.