Indiana University
University Information Technology Services
  
What are archived documents?
Login>>
Login

Login is for authorized groups (e.g., UITS, OVPIT, and TCC) that need access to specialized Knowledge Base documents. Otherwise, simply use the Knowledge Base without logging in.

Close

In Unix, how do I set my default (preferred) editor?

To set your default (preferred) editor on your Unix account, you must define the VISUAL and EDITOR environment variables. When you have done this, most Unix programs that use text editors (e.g., trn, tin, and nn) will use the editor you have set.

The way to set these environment variables depends upon which Unix shell you use.

If you use csh or tcsh, at the shell prompt, enter: setenv VISUAL editor setenv EDITOR editor Replace editor with the editor you want to use (e.g., Emacs, Pico, or vi).

If you use sh, ksh, or bash, at the shell prompt, enter: VISUAL=editor; export VISUAL EDITOR=editor; export EDITOR Replace editor with the editor you want to use (e.g., Emacs, Pico, or vi).

Note: You may want to include the full path to the editor (e.g., /usr/local/bin/emacs, /usr/local/bin/pico, or /bin/vi) instead of just the name of the editor.

By following the commands above, you will set the default editor for the current computing session only. To make these changes permanent, you will need to place the appropriate commands described above in your .login or .cshrc files (for csh or tcsh users) or your .profile file (if you use sh, ksh, or bash).

At Indiana University, for personal or departmental Linux or Unix systems support, see At IU, how do I get support for Linux or Unix?

This is document acnc in domain all.
Last modified on December 02, 2009.

I need help with a computing problem

  • Fill out this form to submit your issue to the UITS Support Center.
  • Please note that you must be affiliated with Indiana University to receive support.
  • All fields are required.



Please provide your IU email address. If you currently have a problem receiving email at your IU account, enter an alternate email address.

I have a comment for the Knowledge Base

  • Fill out this form to submit your comment to the IU Knowledge Base.
  • If you are affiliated with Indiana University and need help with a computing problem, please use the I need help with a computing problem section above, or contact your campus Support Center.