sidux.com
Menu

News

Give back
Last 3 Contributions
16-11-2008 10.00
02-11-2008 20.00
31-10-2008 20.00

Donate


Sponsor
hetzner.de

Languages
Preferred language:



Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
michaa
Post subject: mc -> F4 -> vim , are u serious?  PostPosted: Oct 08, 2008 - 01:21 AM



Joined: Dec 02, 2006
Posts: 1687
Location: Germany / NRW
Status: Offline
Maybe you did it intentionally, then you won't consider this a bug report:

I was very surprised when I tried to edit a system config file using mc on ourea live cd. Something opened and I didn't know how to exit. Afterwards I understood that it was "vim".
 
 View user's profile Send private message  
Reply with quote Back to top
ModestUser
Post subject: RE: mc -> F4 -> vim , are u serious?  PostPosted: Oct 08, 2008 - 02:15 AM



Joined: Jan 07, 2008
Posts: 291

Status: Offline
I was presented nano instead of vim. Are you sure about vim? mc has an option "use internal editor", which gives you mcedit as an editor. nano can be quit rather easily with CTRL-X, while at vim you have to press <ESC> several times and type :q!<RETURN> then.

Generally, would there be any problem with using mcedit as default editor?
 
 View user's profile Send private message  
Reply with quote Back to top
Richard
Post subject: RE: mc -> F4 -> vim , are u serious?  PostPosted: Oct 08, 2008 - 04:07 AM



Joined: Dec 05, 2006
Posts: 496
Location: Venezuela
Status: Offline
I'll vote for that: mcedit as default. +1

_________________
ourea-xfce, 2.6.26-5.slh.6-sidux-686, krusader
 
 View user's profile Send private message  
Reply with quote Back to top
x-un-i
Post subject: RE: mc -> F4 -> vim , are u serious?  PostPosted: Oct 08, 2008 - 05:24 AM



Joined: Nov 25, 2006
Posts: 530

and i change this to requests

_________________
Why do strong arms fatigue themselves with frivolous dumbbells?
To dig a vineyard is worthier exercise for men.
 
 View user's profile Send private message  
Reply with quote Back to top
michaa
Post subject: Re: RE: mc -> F4 -> vim , are u serious?  PostPosted: Oct 08, 2008 - 07:08 AM



Joined: Dec 02, 2006
Posts: 1687
Location: Germany / NRW
Status: Offline
ModestUser wrote:
I was presented nano instead of vim.


@ ModestUser

It can't have been nano, because nano is not part of the live cd, (although many users have voted for nano as a userfriendly cl editor). It did not fumble around with "ctrl".

And yes, it definitifly was and is vim when you press "F4" in mc on live cd.


@ x-un-i

I really can't understnad, why you moved it to requests. A not skilled user who findes himself in front of vim will have serious problems. Or is this part of the "how-do-we-force-every-user-to-become-a-linux-guru" program?
 
 View user's profile Send private message  
Reply with quote Back to top
turtaf
Post subject: RE: Re: RE: mc -> F4 -> vim , are u serious?  PostPosted: Oct 08, 2008 - 08:43 AM



Joined: Dec 05, 2006
Posts: 151

Status: Offline
It's quite easy to set it back to the embedded editor via configuration menu
I did it, as I really go mad with vim
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
devil
Post subject: RE: Re: RE: mc -> F4 -> vim , are u serious?  PostPosted: Oct 08, 2008 - 08:58 AM
Team Member


Joined: Nov 24, 2006
Posts: 2835
Location: berlin
Status: Offline
michaa,
this is not a preset done by sidux but by the maintainer of the package.
i agree its not a good idea because mc should stay a 'low level' editor.

greetz
devil

_________________
>>we are sidux - resistance is futile - you will be assimilated<<
 
 View user's profile Send private message  
Reply with quote Back to top
michaa
Post subject: Re: RE: Re: RE: mc -> F4 -> vim , are u serious?  PostPosted: Oct 08, 2008 - 09:55 AM



Joined: Dec 02, 2006
Posts: 1687
Location: Germany / NRW
Status: Offline
devil wrote:
michaa,
this is not a preset done by sidux but by the maintainer of the package.
i agree its not a good idea because mc should stay a 'low level' editor.


devil,

thanks for the info.

BTW: to re-include nano still would be appreciated very much. But that's slightly OT in this thread ...
 
 View user's profile Send private message  
Reply with quote Back to top
ModestUser
Post subject: RE: Re: RE: mc -> F4 -> vim , are u serious?  PostPosted: Oct 08, 2008 - 09:57 AM



Joined: Jan 07, 2008
Posts: 291

Status: Offline
I see:
I see:
KDE Full DVD: has nano -> nano is default editor
KDE Lite Edition: no nano -> vim is default editor
Xfce edition: no nano -> vim is default
 
 View user's profile Send private message  
Reply with quote Back to top
ModestUser
Post subject: RE: Re: RE: mc -> F4 -> vim , are u serious?  PostPosted: Oct 08, 2008 - 11:30 AM



Joined: Jan 07, 2008
Posts: 291

Status: Offline
... and it seems that I discovered sidux too late to experience the editor wars: not vi vs. emacs but mcedit vs. nano:

http://sidux.com/index.php?name=PNphpBB2&file=viewtopic&t=3655
http://sidux.com/index.php?name=PNphpBB2&file=viewtopic&t=9750
http://sidux.com/index.php?name=PNphpBB2&file=viewtopic&t=1020

But if nano is not on lite and one would like to have the same default editor on Lite and Full, then mcedit would have to be the default.
 
 View user's profile Send private message  
Reply with quote Back to top
severin
Post subject: Re: RE: Re: RE: mc -> F4 -> vim , are u serious?  PostPosted: Oct 08, 2008 - 12:09 PM



Joined: Dec 04, 2006
Posts: 1233

Status: Offline
turtaf wrote:
It's quite easy to set it back to the embedded editor via configuration menu
I did it, as I really go mad with vim
+1 for setting this in /etc/skel for Pontos
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
kelmo
Post subject: RE: Re: RE: Re: RE: mc -> F4 -> vim , are u serious?  PostPosted: Oct 08, 2008 - 12:27 PM



Joined: Dec 19, 2006
Posts: 1029

Status: Offline
Nothing is set in /etc/skel/ for any of our preseeding.

What is the exact configuration change and location on the filesystem to make this happen?
 
 View user's profile Send private message  
Reply with quote Back to top
turtaf
Post subject: RE: Re: RE: Re: RE: mc -> F4 -> vim , are u serious?  PostPosted: Oct 08, 2008 - 12:50 PM



Joined: Dec 05, 2006
Posts: 151

Status: Offline
if you mean how you can set it back to mcedit, it's easy:
open mc
select configuration in the options menu
check the box use internal editor.

cheers
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
kelmo
Post subject: RE: Re: RE: Re: RE: mc -> F4 -> vim , are u serious?  PostPosted: Oct 08, 2008 - 01:03 PM



Joined: Dec 19, 2006
Posts: 1029

Status: Offline
I mean: where is this change written to on the filesystem.
 
 View user's profile Send private message  
Reply with quote Back to top
michaa
Post subject: RE: Re: RE: Re: RE: mc -> F4 -> vim , are u serious?  PostPosted: Oct 08, 2008 - 01:31 PM



Joined: Dec 02, 2006
Posts: 1687
Location: Germany / NRW
Status: Offline
There is a file:

/var/lib/dpkg/alternatives/editor

and a command:

EXPORT editor = /usr/sbin/mcedit

but 'I have no clue how it works.

Maybe

"dpkg-reconfigure editor" ?
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2007 The PNphpBB Group
Credits
 
Logos and trademarks are the property of their respective owners, comments are property of their posters, the rest is © 2006-2008 by sidux e.V., 10407 Berlin, Kniprodestr. 104. sidux e.V. is a Berlin, Germany based non-profit foundation. Consult Impressum and Legal Terms for details. sidux™ is Free Software released under the GNU/GPL license and other compatible licenses.
powered by Zikula & Zafenio