Linux Debian support - Vim as default editor for Midnight Commander

This is Interesting: Free IT Magazines  
Home > Archive > Linux Debian support > May 2007 > Vim as default editor for Midnight Commander





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Vim as default editor for Midnight Commander
Tim Johnson

2007-05-17, 7:14 pm

Hello:

I'm using kubuntu 7.04. My background is slack and redhat
and I have a preference for command lines, vim and midnight commander.
Let my previous platforms, I would like vim to the default editor
for Midnight Commander.

On my other systems, for both the user and root .bashrc, I include
the following lines:
export EDITOR=vim
then I uncheck the "Use Internal Edit" and "Use Internal Viewer"
items under Options->Configuration, save and all is good.

However, on this ubuntu, the same actions result in *nano* being
started.

Can anyone advise me how to enable vim on this machine?
thanks
tim
Björn Steinbrink

2007-05-17, 7:14 pm

On Thu, 17 May 2007 15:14:35 +0000, Tim Johnson wrote:

> Hello:
>
> I'm using kubuntu 7.04. My background is slack and redhat and I have a
> preference for command lines, vim and midnight commander. Let my
> previous platforms, I would like vim to the default editor for Midnight
> Commander.
>
> On my other systems, for both the user and root .bashrc, I include the
> following lines:
> export EDITOR=vim
> then I uncheck the "Use Internal Edit" and "Use Internal Viewer" items
> under Options->Configuration, save and all is good.
>
> However, on this ubuntu, the same actions result in *nano* being
> started.
>
> Can anyone advise me how to enable vim on this machine? thanks


I don't use mc, but maybe Ubuntu has modified it to use its alternatives
system. You can reconfigure your default editor using:
update-alternatives --config editor

HTH
Björn
Tim Johnson

2007-05-18, 1:14 am

Björn Steinbrink wrote:

>
> I don't use mc, but maybe Ubuntu has modified it to use its alternatives
> system. You can reconfigure your default editor using:
> update-alternatives --config editor


Hi Björn:
That is the solution.
Thank you very much.
Tim
sk8-365

2007-05-18, 1:14 am

Tim Johnson said:
<snip>

> Can anyone advise me how to enable vim on this machine?


Tim,
I see your answer has come.
Reason I'm writing is to compliment your post.
It had excellent elements:
OS and version
environment
what you've attempted and results
clearly stated goals

Thanks for the refreshing read !

--
sk8-365
Tim Johnson

2007-05-19, 1:15 am

sk8-365 wrote:
> Tim Johnson said:
> <snip>
>
>
> Tim,
> I see your answer has come.
> Reason I'm writing is to compliment your post.
> It had excellent elements:
> OS and version
> environment
> what you've attempted and results
> clearly stated goals
>
> Thanks for the refreshing read !


:-) And mighty thanks for the debian folks for honoring ubuntu questions.
cheers
tj
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com