LinuxQuestions.org
Visit Jeremy's Blog.
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, 09: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, 09:47 PM   #2
hemp4fuel
Member
 
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
blk96gt
Member
 
Registered: Jun 2004
Location: Nacogdoches, TX
Distribution: Ubuntu 7.04
Posts: 230

Original Poster
Rep: Reputation: 30
Thanks!
 
Old 06-13-2004, 10: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, 03:53 AM   #5
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,807

Rep: Reputation: 945Reputation: 945Reputation: 945Reputation: 945Reputation: 945Reputation: 945Reputation: 945Reputation: 945
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.
 
  


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 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? rdaves@earthlink.net Linux - Newbie 2 05-23-2001 01:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:09 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
Open Source Consulting | Domain Registration