Linux - GeneralThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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.
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.
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.
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.
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.
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.
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).
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.