Midnight commander mc not showing in default colors in GNU screen

If you are using GNU screen and you notice that while MC is showing in default blue color for root but not for the user the easy fix would be to try this:

TERMCAP='' /usr/bin/mc --skin=default

If this works for you and mc is showing in color then you can setup an alias in your .bashrc like:

alias mc='TERMCAP="" /usr/bin/mc --skin=default'

do the reload of .bashrc with:

source .bashrc

Then the next time you run mc from with your user it should be displayed in default color instead of black and white.

Change default editor in Debian and debian-like distributions

To check which editor is set as default in your Debian distro you can do two things:

  1. in your favorite shell press CTRL+X+CTRL+E which will launch your default editor or
  2. use command update-alternatives –list-editor to list installed editors and you can expect result similar like this one:
# update-alternatives --list editor
 /bin/nano
 /usr/bin/mcedit
 /usr/bin/vim.basic

To set for example vim.basic as your default editor you can use following command:

# update-alternatives --set editor /usr/bin/vim.basic
 update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/editor (editor) in manual mode

Now if you again quick launch your editor with CTRL+X+CTRL+E you will notice that vim is invoked.