LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-06-2007, 10:01 PM   #1
linux_usb
LQ Newbie
 
Registered: Oct 2006
Posts: 5

Rep: Reputation: 0
vim, vi: where is it linked?


Hello,

I use FC3 with Gnome as the GUI. I was using an older laptop, where vi was linked to vim (I didn't do that - it was done during installation). I use vi all the time, and whenever I used vi, vim would open up.

Recently I bought a new laptop, and installed the same set of OS, tools. But, in this new laptop, I don't have that. vi opens vi, and vim opens vim.

I know how to do the linking. But, I didn't find any links/alias in my older laptop. I checked my home directory, /etc - it's not there. It just beats me how it's done. I really appreciate if someone points me to the right direction.

Thanks!
 
Old 09-06-2007, 10:33 PM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 613Reputation: 613Reputation: 613Reputation: 613Reputation: 613Reputation: 613
Probably /usr/bin/vi was symlinked to /usr/bin/vim
 
Old 09-06-2007, 11:56 PM   #3
thloh85
Member
 
Registered: Apr 2006
Location: Earth
Distribution: BLFS customized
Posts: 160

Rep: Reputation: 31
Quote:
Probably /usr/bin/vi was symlinked to /usr/bin/vim
Most probably... Cause I'm using Linux that I built from source code... And I do symlink vi to vim
Hope this helps
 
Old 09-07-2007, 12:20 AM   #4
tommytomthms5
Member
 
Registered: Sep 2007
Distribution: debian based
Posts: 305

Rep: Reputation: 30
if you have gnome why not use gedit???
 
Old 09-07-2007, 07:29 AM   #5
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 613Reputation: 613Reputation: 613Reputation: 613Reputation: 613Reputation: 613
Quote:
Originally Posted by tommytomthms5 View Post
if you have gnome why not use gedit???
Because some of us like the command line more?
 
Old 09-07-2007, 07:32 AM   #6
livetoday
Member
 
Registered: Jun 2006
Location: India
Distribution: RHEL,Suse,Fedora
Posts: 106

Rep: Reputation: 15
use the command: "which vi"

Quote:
Originally Posted by linux_usb View Post
Hello,

I use FC3 with Gnome as the GUI. I was using an older laptop, where vi was linked to vim (I didn't do that - it was done during installation). I use vi all the time, and whenever I used vi, vim would open up.

Recently I bought a new laptop, and installed the same set of OS, tools. But, in this new laptop, I don't have that. vi opens vi, and vim opens vim.

I know how to do the linking. But, I didn't find any links/alias in my older laptop. I checked my home directory, /etc - it's not there. It just beats me how it's done. I really appreciate if someone points me to the right direction.

Thanks!
 
Old 09-07-2007, 08:40 AM   #7
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 55
Or "type vi" which also works for aliases.
 
  


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
encryption with Vim (vim -x) mikshaw Linux - Software 2 03-07-2007 10:00 AM
LXer: Vim tips: Using Vim mappings and abbreviations LXer Syndicated Linux News 0 06-18-2006 02:54 PM
LXer: Cream for Vim - Making Vim more user friendly LXer Syndicated Linux News 0 06-18-2006 12:54 AM
library linked twice okhan Programming 1 08-12-2005 11:33 PM
Winxp linked to Linux Linked to home network OverboardKiller Linux - Networking 2 06-09-2003 10:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:49 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration