start vim when vi is typed
what file do i need to edit to allow vim to be started when i type in vi at the command line instead of vim???
Thanks Rick |
edit either your .bashrc file (in your home dir) or /etc/profile (mind, that won't effect x-terms) and add the line:
Code:
alias vi='vim' |
Or you can create a symlink as well.. ;)
|
Did you install vim?? Suse (6,7,8) had vi linked to vim, that's why I ask.
If vi is installed: move /usr/bin/vi to /usr/bin/vi.org mv /usr/bin/vi /usr/bin/vi.org Link vi to vim ln -s /usr/bin/vim /usr/bin/vi You can always go back to vi. Just remove the link and rename vi.org to vi. Hope this helps. |
Quote:
|
Quote:
Cheers, Tink |
Quote:
|
Quote:
|
All times are GMT -5. The time now is 10:42 PM. |