Default editor in zsh


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Default editor in zsh
# 1  
Old 05-27-2011
Default editor in zsh

Guys,

Can somebody help in setting vi as the default editor in zsh shell.
I know that in ksh and bourne we can achieve the setting through .profile file.
I want to replicate the behavior of ksh in zsh where on command prompt when one presses escape the screen acts as a vi.
And one can use all vi keywords to edit the typed command.

Is it possible in zsh(Linux)
# 2  
Old 05-27-2011
set -o vi should work.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

5 More Discussions You Might Find Interesting

1. Solaris

Default text editor

Hi, sorry if something similar has already asked. But I am interested how to change default text editor on Unix Solaris? When I open File Manager -> Edit -> Properties.. -> Category (Advanced Settings) -> Default Editor (Other) I have something like: shelltool sh -c "sleep 3; vi $FILE"... (13 Replies)
Discussion started by: spuzh
13 Replies

2. Shell Programming and Scripting

Using zsh

Hi all i am forced to use tcsh at work but i want to use zsh, so i have added this to my .cshrc if (! $?STARTTCSH) then if ("$tty" != "" && -x /bin/zsh) exec /bin/zsh exit endif but this now stopped me going back to tcsh if i need to, is there a way to do this, i would... (7 Replies)
Discussion started by: ab52
7 Replies

3. Shell Programming and Scripting

set EDITOR=vi -> default editor not setting for cron tab

Hi All, I am running a script , working very fine on cmd prompt. The problem is that when I open do crontab -e even after setting editor to vi by set EDITOR=vi it does not open a vi editor , rather it do as below..... ///////////////////////////////////////////////////// $ set... (6 Replies)
Discussion started by: aarora_98
6 Replies

4. UNIX for Dummies Questions & Answers

Pasting text in VI editor from a different editor

Hi, I knw its a silly question, but am a newbie to 'vi' editor. I'm forced to use this, hence kindly help me with this question. How can i paste a chunk 'copied from' a different editor(gedit) in 'vi editor'? As i see, p & P options does work only within 'vi'. (10 Replies)
Discussion started by: harishmitty
10 Replies

5. UNIX for Dummies Questions & Answers

Changing default editor

Redhat 9 I want to change my default text editor from vi to pico. When I look in the .bash_profile or .bashrc I do not see the EDITOR variable. So how do I change the default permanently? (1 Reply)
Discussion started by: Tony Empire
1 Replies
Login or Register to Ask a Question