Unix
Link
https://www.opengroup.org/membership/forums/platform/unix
- This note is about a range of more-or-less compatible [operating systems](…/operating systems/) generally considered as “Unix”.
- The link is about the owner of the UNIX trademark.
Resources
FAQ
Set your 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 (for example,
trn
,tin
, andnn
) will use the editor you have set.The way to set these environment variables depends upon which Unix [shell](…/UNIX shells/) you use.
If you use
csh
ortcsh
, at the shell prompt, enter:setenv VISUAL editor setenv EDITOR editor
Replace
editor
with the editor you want to use (such as Emacs, Pico, or vi).If you use
sh
,ksh
, orbash
, at the shell prompt, enter:VISUAL=editor; export VISUAL EDITOR=editor; export EDITOR
Replace
editor
with the editor you want to use (such as Emacs, Pico, or vi). You may want to include the full path to the editor (for example,/usr/local/bin/emacs
,/usr/local/bin/pico
, or/bin/vi
), rather than simply the name.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 (forcsh
ortcsh
users) or your.profile
file (if you usesh
,ksh
, orbash
).
Source: Indiana University