LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices



Reply
 
Search this Thread
Old 06-13-2004, 10:31 PM   #1
blk96gt
Member
 
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, 10:47 PM   #2
hemp4fuel
Member
 
Registered: Jun 2003
Location: Topeka, KS
Distribution: Slackware
Posts: 192

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

Original Poster
Rep: Reputation: 30
Thanks!
 
Old 06-13-2004, 11:08 PM   #4
spevack
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, 04:53 AM   #5
keefaz
Senior Member
 
Registered: Mar 2004
Distribution: Slackware
Posts: 4,617

Rep: Reputation: 136Reputation: 136
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 04:57 AM.
 
  


Reply


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 02:48 PM
Create symbolic link of remote location Belgian_Penguin Linux - Software 6 11-26-2004 09:13 AM
How do I create a symbolic link? Arenba Linux - Newbie 4 09-29-2003 11:40 AM
How to create a Symbolic Link? sikandar Linux - Software 6 09-09-2003 12:41 PM
how do I create a symbolic link? rdaves@earthlink.net Linux - Newbie 2 05-23-2001 02:28 PM


All times are GMT -5. The time now is 12:17 PM.

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