Default editor Solaris 8

Posted on 2005-05-09
Last Modified: 2013-12-21
Currently my default editor is set to 'ed'.  How do I change that in order to make it 'vi' in Solaris 8
Question by:ROCK1972
    LVL 33

    Expert Comment

    Set the editor variable
    LVL 33

    Expert Comment

    urs would be
    setenv EDITOR /bin/vi
    LVL 38

    Accepted Solution

    type in:
    echo $SHELL

    to find out which one is you login shell.

    For sh/ksh/bash, do:
    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.
    LVL 10

    Expert Comment

    Pa Pa Pa Pleeeezzzzzzzz

    Vi is nice but VIM ROCKS !!!!!

    Goto, download the VIM package, and ENJOY !!!

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    What Should I Do With This Threat Intelligence?

    Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

    Suggested Solutions

    Title # Comments Views Activity
    CIFS mount between AIX & WIN XP 2 108
    Compare two different files 3 56
    Convert OverPunch 25 48
    Remote Change Dates on AIX Automation 7 35
    Hello fellow BSD lovers, I've created a patch process for patching openjdk6 for BSD (FreeBSD specifically), although I tried to keep all BSD versions in mind when creating my patch. Welcome to OpenJDK6 on BSD First let me start with a little …
    Let's say you need to move the data of a file system from one partition to another. This generally involves dismounting the file system, backing it up to tapes, and restoring it to a new partition. You may also copy the file system from one place to…
    Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
    Video by: Phil
    This video goes over how to configure and start a jail in FreeBSD.  This video is meant to supplement the article included with this course.

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now