Debian Lenny and MC (Midnight Commander)

Discussion in 'Installation/Configuration' started by edge, Feb 19, 2009.

  1. edge

    edge Active Member Moderator

    I love MC, and I use it all the time to make changes to files.
    Now I just installed the new Denian Lenny, and MC on it.

    Horror.. :eek: When I press F4 within MC, NANO opens :eek:
    On Debian Etch it was not like this. MC had a really nice editor in it!

    Anyone here who might know whats up with this? I realy do not want to use nano!
     
  2. falko

    falko Super Moderator ISPConfig Developer

    Run
    Code:
    apt-get install vim-nox
    and then
    Code:
    update-alternatives --config editor
    and select vim-nox:

    Code:
    server1:/tmp/dcc-dccproc-1.3.102# 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'.
    server1:/tmp/dcc-dccproc-1.3.102#
     
  3. edge

    edge Active Member Moderator

    I have 5 options to choose form.
    Code:
    There are 5 alternatives which provide `editor'.
    
      Selection    Alternative
    -----------------------------------------------
              1    /bin/ed
     +        2    /bin/nano
              3    /usr/bin/vim.tiny
    *         4    /usr/bin/mcedit-debian
              5    /usr/bin/vim.nox
    
    It's the /usr/bin/mcedit-debian that I want (and love).
     

Share This Page