You are not logged in.

#1 2009-03-27 19:17:08

HappyD
Member
From: Croatia, Zagreb
Registered: 2009-03-27
Posts: 6

Setup - Accidentally pressed vi, how to switch back to nano editor?

Hello everyone!
So the problem is that i've accidentally selected vi as my configuration files editor and now i don't see a way to select nano again. How can i use nano again? hmm

Offline

#2 2009-03-27 19:21:02

bgc1954
Member
From: Edmonton, AB, Canada
Registered: 2006-03-14
Posts: 1,160

Re: Setup - Accidentally pressed vi, how to switch back to nano editor?

What wm or de are you using?  Hard to help without more info.


Time is a great teacher, but unfortunately it kills all its pupils ... - Louis Hector Berlioz

Offline

#3 2009-03-27 19:24:54

HappyD
Member
From: Croatia, Zagreb
Registered: 2009-03-27
Posts: 6

Re: Setup - Accidentally pressed vi, how to switch back to nano editor?

Oh damn, forgot!
Have no idea what you just said (ya, me be n00b), but here's something: the release is 2009.02 and it's Core. I'm installing it on VirtualBox.

Offline

#4 2009-03-27 19:30:36

Gen2ly
Member
From: Sevierville, TN
Registered: 2009-03-06
Posts: 1,529
Website

Re: Setup - Accidentally pressed vi, how to switch back to nano editor?

During the install selecting an editor only is for the install, you can probably go back to the original choice and choose it again.


Setting Up a Scripting Environment | Proud donor to wikipedia - link

Offline

#5 2009-03-27 19:30:36

MTsoul
Member
From: Vancouver, BC
Registered: 2008-08-14
Posts: 95
Website

Re: Setup - Accidentally pressed vi, how to switch back to nano editor?

It should be in your .bashrc file. EDITOR=nano should do it.

Offline

#6 2009-03-27 19:32:57

dyscoria
Member
Registered: 2008-01-10
Posts: 1,007

Re: Setup - Accidentally pressed vi, how to switch back to nano editor?

In the installer, as far as I can remember you should finish editting all your files and then repeat that stage of the install again, but then select nano as your editor.

edit: The command to save and exit in vi is ":wq" and then press [enter].

Last edited by dyscoria (2009-03-27 19:34:02)


flack 2.0.6: menu-driven BASH script to easily tag FLAC files (AUR)
knock-once 1.2: BASH script to easily create/send one-time sequences for knockd (forum/AUR)

Offline

#7 2009-03-27 19:39:34

HappyD
Member
From: Croatia, Zagreb
Registered: 2009-03-27
Posts: 6

Re: Setup - Accidentally pressed vi, how to switch back to nano editor?

Yeah, i did that, but when i repeat the step, it doesn't give me the menu to choose the editor
EDIT: Oh, well, never mind, i'll go restart the installation.

Last edited by HappyD (2009-03-27 19:46:51)

Offline

#8 2009-03-27 20:21:27

Ranguvar
Member
Registered: 2008-08-12
Posts: 2,544

Re: Setup - Accidentally pressed vi, how to switch back to nano editor?

...or you could just use Vi tongue
Learning it 'for reals' takes a while, but all you need to know to use it like a less awesome editor is arrow keys to move cursor, 'i' to go to insert mode to type stuff, 'esc' to go back to command mode, and ':x' in command mode to save and quit -- ':q!' in command mode to quit without saving.

Offline

#9 2009-03-28 11:02:49

Dieter@be
Forum Fellow
From: Belgium
Registered: 2006-11-05
Posts: 2,000
Website

Re: Setup - Accidentally pressed vi, how to switch back to nano editor?

Once $EDITOR is set, it will keep using it and not ask again.
You could background the installer, export EDITOR=nano and forground it again.  Or just restart it.
I'm pretty sure we don't put it in a .bash*


< Daenyth> and he works prolifically
4 8 15 16 23 42

Offline

#10 2009-03-28 11:41:23

bgc1954
Member
From: Edmonton, AB, Canada
Registered: 2006-03-14
Posts: 1,160

Re: Setup - Accidentally pressed vi, how to switch back to nano editor?

Dieter@be

Once $EDITOR is set, it will keep using it and not ask again.
You could background the installer, export EDITOR=nano and forground it again.  Or just restart it.
I'm pretty sure we don't put it in a .bash*

I'm probably doing something wrong again but if I don't have export EDITOR=nano in my .bashrc, mc always uses vi for the editor--I turned off the internal edIt option.  Works for me. tongue


Time is a great teacher, but unfortunately it kills all its pupils ... - Louis Hector Berlioz

Offline

#11 2009-03-28 14:40:42

HappyD
Member
From: Croatia, Zagreb
Registered: 2009-03-27
Posts: 6

Re: Setup - Accidentally pressed vi, how to switch back to nano editor?

Thanks people, but i've already restarted the installation and finished it, right now i'm configuring my system. I'm at the X installation.

Offline

Board footer

Powered by FluxBB