LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   start vim when vi is typed (https://www.linuxquestions.org/questions/linux-software-2/start-vim-when-vi-is-typed-158056/)

PlatinumRik 03-15-2004 02:22 PM

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

Komakino 03-15-2004 02:28 PM

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'

trickykid 03-15-2004 02:28 PM

Or you can create a symlink as well.. ;)

druuna 03-15-2004 02:33 PM

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.

Komakino 03-15-2004 03:42 PM

Quote:

Originally posted by druuna
Did you install vim?? Suse (6,7,8) had vi linked to vim, that's why I ask.

but then Slackware doesn't. They link vi to elvis! God that's awful...

Tinkster 03-15-2004 04:05 PM

Quote:

but then Slackware doesn't. They link vi to elvis! God that's awful...
Yep ... they REALLY should link both to pico :D


Cheers,
Tink

trickykid 03-15-2004 04:13 PM

Quote:

Originally posted by Tinkster
Yep ... they REALLY should link both to pico :D


Cheers,
Tink

Pico! acid_kewpie uses pico! Never... I will never use pico.. its just.. way to easy ;)

Komakino 03-15-2004 04:24 PM

Quote:

Originally posted by trickykid
Pico! acid_kewpie uses pico! Never... I will never use pico.. its just.. way to easy ;)
I had to use pico to edit my initial .vimrc file just to make vim usable...can't STAND vi compatibility.


All times are GMT -5. The time now is 10:42 PM.