I tried these solutions:

  1. Through the use internal editor option
  2. Using export EDITOR="vim.basic" in ~/.profile
  3. Using the start select-editor command line mc.

Are there any more reliable ways to change the default editor in mc to vim?

  • one
    In theory, the first two points should be enough. But still update-alternatives for reliability can be. - PinkTux
  • A little holivarno but even so I ask. What can mc do that, what vim can't? Why not use only it? - Arnial
  • In Vime, you can also watch files, climb directories. But somehow mc is more intended for this. But there is still vifm. - KoVadim

1 answer 1

Using update-alternatives select vim.basic to view and edit files:

 sudo update-alternatives --config editor sudo update-alternatives --config view 

In ~/.config/mc/ini :

 use_internal_view=0 use_internal_edit=0 

And in ~/.bashrc add:

 export EDITOR="/usr/bin/vim"