Vim as default editor for Midnight Commander
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Free Debian support > Linux Debian support > Vim as default editor for Midnight Commander




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Vim as default editor for Midnight Commander  
Tim Johnson


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
05-18-07 12:14 AM

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





[ Post a follow-up to this message ]



    Re: Vim as default editor for Midnight Commander  
Björn Steinbrink


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
05-18-07 12:14 AM

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





[ Post a follow-up to this message ]



    Re: Vim as default editor for Midnight Commander  
Tim Johnson


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
05-18-07 06: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





[ Post a follow-up to this message ]



    Re: Vim as default editor for Midnight Commander  
sk8-365


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
05-18-07 06: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





[ Post a follow-up to this message ]



    Re: Vim as default editor for Midnight Commander  
Tim Johnson


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
05-19-07 06: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





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 10:31 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register