[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 929
  • Last Modified:

Default editor Solaris 8

Currently my default editor is set to 'ed'.  How do I change that in order to make it 'vi' in Solaris 8
0
ROCK1972
Asked:
ROCK1972
  • 2
1 Solution
 
sajuksCommented:
Set the editor variable
EDITOR=/bin/vi

http://osr5doc.sco.com:457/cgi-bin/man/man?environ+M
0
 
sajuksCommented:
urs would be
setenv EDITOR /bin/vi
0
 
yuzhCommented:
type in:
echo $SHELL

to find out which one is you login shell.

For sh/ksh/bash, do:
EDITOR=vi
export EDITOR

You can put it in your login script, eg .profile under your home dir, it will take effect
for you next login.

For csh/tcsh
setenv EDITOR /bin/vi

put in the .cshrc file under your home dir.
0
 
NukfrorCommented:
Pa Pa Pa Pleeeezzzzzzzz

Vi is nice but VIM ROCKS !!!!!

Goto www.sunfreeware.com, download the VIM package, and ENJOY !!!
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now