PROBLEM DESCRIPTION
...
Change the permission on the file to 755:
Code Block |
---|
$chmod 755 $HOME/vi |
Lastly, open the login script file such as .profile, .cshrc or .login and add the following line:
Code Block |
---|
$alias vi='$HOME/vi' |
(If you are using C Shell, use $alias vi '$HOME/vi')
Or you can use a little code using alias.
Code Block |
---|
$ alias vi=`OLDTERM=${TERM}; TERM=ansi; \vi; TERM=${OLDTERM}' |