LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-23-2004, 08:09 PM   #1
Tyir
Member
 
Registered: Sep 2003
Distribution: Slackware 9.1 with fluxbox
Posts: 259

Rep: Reputation: 30
Is it really worth learning vi at this point?


Hi, this is almost a philisophical question, but here goes:
I'm taking a C programming class (in the UNIX environment), and my prof recommended that we use vi as our editor. When i started using linux, i used vi, but switched to pico. When I started the class, i tried a few different editors, and decided I would use jedit.
Do you guys think it is worth it for me to learn vi at this point? It IS the year 2004, and I know that vi is really powerful, but do you think it is worth it for me to learn it, as opposed to, say, jedit?

Thanks
 
Old 02-23-2004, 08:15 PM   #2
Valthonis
LQ Newbie
 
Registered: Feb 2004
Location: Hartford, CT
Distribution: Gentoo
Posts: 5

Rep: Reputation: 0
Not knowing much about jedit, the only thing I can really tell you is that it almost never hurts to know about different editors. vi and Emacs are the two most common in the *NIX world, so knowing the ins-and-outs of at least one of these will make sure that no matter where you go you'll be well versed in something that's available on whatever host machine you're working with.
 
Old 02-23-2004, 08:16 PM   #3
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
Maybe down the road sometime your prof will spring a situation on you where the other editors are not available.
Besides it should take about 2 minutes to get comfy using vi.
 
Old 02-23-2004, 08:29 PM   #4
mikshaw
LQ Addict
 
Registered: Dec 2003
Location: Maine, USA
Distribution: Slackware/SuSE/DSL
Posts: 1,320

Rep: Reputation: 45
I also know little about jedit...actually I've never heard of it...

Adding to what has been said, can jedit be used in a command line interface?
It's extremely handy to be able to use a powerful editor which doesn't depend on GUI, since you may find yourself in a situation where that GUI is broken or otherwise not available.

BTW, I don't believe that editing text is something that is greatly affected by the calendar....vi(m) is as useful today as it was in the "ancient" times.

Last edited by mikshaw; 02-23-2004 at 08:32 PM.
 
Old 02-23-2004, 08:35 PM   #5
snacky
Member
 
Registered: Feb 2004
Distribution: Debian
Posts: 286

Rep: Reputation: 30
Hopefully you have vim, and you can run "vimtutor". It is pretty nice and will quickly teach you some powerful things.

You will probably appreciate syntax highlighting and/or paren matching and stuff like that. If you put more time into it, you will learn that you can do just about anything with vi. At a bare minimum, I suggest learning how to do regex search & replace some day.

My first impression of vi from years ago was that it was a pile of crap and it was totally annoying. Today I find what's truly annoying is to be left without all the powerful tools and techniques that vi gives you. Like many things in unix, it is harder to learn but actually easier to use because of all the power and flexibility it gives you.
 
Old 02-23-2004, 08:55 PM   #6
mhiggins
Member
 
Registered: Feb 2004
Posts: 140

Rep: Reputation: 15
I thought the same thing some time ago, and started using xemacs, a more familiar gui editor. I then started doing some sysadmin work and was forced to use vi and found it very useful. I now work as developer on a hardware product and the only editor we have on our "Developer Build", is vi, so vi is every where and it good to know if only kjhl i. I guess I am just echoing the above comments but, it is always good to learn, if only for the sake of learning.

-Matt
 
Old 02-23-2004, 09:52 PM   #7
lyle_s
Member
 
Registered: Jul 2003
Distribution: Slackware
Posts: 392

Rep: Reputation: 55
I was in the same situation years ago. Some professor with bad 70s hair telling us that this crazy vi editor from the dinosaur ages was useful.

Now gvim (graphical vi improved) is all I'll edit with.

My tip for a vi newbie: use ctrl+[ (that is, with the ctrl key held down, pressing the "[" key) instead of the "Esc" key for switching into command mode. That way, your hands never have to leave the home position.

Lyle
 
Old 02-23-2004, 10:22 PM   #8
e1000
Member
 
Registered: Oct 2003
Location: California
Distribution: Ubuntu
Posts: 582

Rep: Reputation: 30
the first time I used vi, I thought it was broken. When it occured to me that it wasnt broken I thought it was a piece of crap and stoped using it.

then in the first LUG meeting I ever went to I mentioned my problems with vi to one of the members and he kindly pointed me in the direction of "vimtutor"

now its the only text editor I use (except for OOo, but thats for reports and stuf).
 
Old 02-24-2004, 12:51 AM   #9
shellcode
Member
 
Registered: May 2003
Location: Beverly Hills
Distribution: Slackware, Gentoo
Posts: 350

Rep: Reputation: 32
Re: Is it really worth learning vi at this point?

Quote:
Originally posted by Tyir
It IS the year 2004, and I know that vi is really powerful, but do you think it is worth it for me to learn it, as opposed to, say, jedit?
what difference does it make if it's 2004 or 1974? vi(m) is an amazingly powerful editor and you should definitely use it. once you get used to it and configure it the way you like, you'll find that programming is a lot nicer and faster.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Python - worth learning? vharishankar Programming 39 07-08-2005 02:38 AM
Is Visual Basic worth learning? titanium_geek Programming 20 07-07-2005 09:58 AM
Learning Linux from scratch - worth it / needed? mxk Linux - Newbie 38 06-27-2004 12:29 AM
GTK Programming Worth Learning drdroid Programming 3 04-14-2004 04:37 PM
Is scripting worth learning ChimpFace9000 Linux - General 3 07-05-2001 04:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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