Back to default editor

Back in time sh or bash was default console shell. And really other chooses was for very advanced admins.

Now there are a lot more console shells avalaible and debian often use dash as more advanced alternative. As it under debian community control.

And my old article about vim as default not very suitable for debian.

So, what is suitable alternative? As always is pretty simple, BUT debian specific:

sudo update-alternatives --config editor

You will see something like this:

  Selection    Path                Priority   Status
* 0            /bin/nano            40        auto mode
  1            /bin/nano            40        manual mode
  2            /usr/bin/vim.basic   30        manual mode
  3            /usr/bin/vim.tiny    10        manual mode

Just choose 2 or 3 and vuala you get vim as default!

Trackback URL for this post: