Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 06-13-2004, 09:31 PM   #1
Registered: Jun 2004
Location: Nacogdoches, TX
Distribution: Ubuntu 7.04
Posts: 230

Rep: Reputation: 30
Question How do I create a symbolic link so vi opens up vim?

I was doing some reading around trying to figure out how to get vim to work like it did when I was using redhat, and I got that figured out. But now, I don't know how to get vi to open up to vim. After some reading I figured out that /usr/bin/vi is a symlink to elvis, and to get it to open up vim you delete that symlink and make it a symlink to vim. My question is how do I do this? I tried some searching but I couldn't find anything on it. Thanks for the help.
Old 06-13-2004, 09:47 PM   #2
Registered: Jun 2003
Location: Topeka, KS
Distribution: Slackware
Posts: 193

Rep: Reputation: 45
rm /usr/bin/vi
ln -s /usr/bin/vim /usr/bin/vi
Old 06-13-2004, 10:07 PM   #3
Registered: Jun 2004
Location: Nacogdoches, TX
Distribution: Ubuntu 7.04
Posts: 230

Original Poster
Rep: Reputation: 30
Old 06-13-2004, 10:08 PM   #4
LQ Newbie
Registered: Apr 2004
Posts: 8

Rep: Reputation: 0
like the previous post says, or simply put:

alias vi vim

in your .cshrc, .bashrc, etc.
Old 06-14-2004, 03:53 AM   #5
LQ Guru
Registered: Mar 2004
Distribution: Slackware
Posts: 6,163

Rep: Reputation: 699Reputation: 699Reputation: 699Reputation: 699Reputation: 699Reputation: 699
for bash: alias vi="vim"
for csh : alias vi vim

and export VISUAL="vim" (for bash)
setenv VISUAL vim (for csh)

to use vim color feature in crontab for example

Last edited by keefaz; 06-14-2004 at 03:57 AM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
create a symbolic link in Mozilla drevil666 Linux - Software 2 07-04-2005 01:48 PM
Create symbolic link of remote location Belgian_Penguin Linux - Software 6 11-26-2004 08:13 AM
How do I create a symbolic link? Arenba Linux - Newbie 4 09-29-2003 10:40 AM
How to create a Symbolic Link? sikandar Linux - Software 6 09-09-2003 11:41 AM
how do I create a symbolic link? Linux - Newbie 2 05-23-2001 01:28 PM > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 01:04 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration