Solved

vi - do I need to learn it?

Posted on 2000-03-19
4
339 Views
Last Modified: 2013-12-06
I am running a UNIX server to run a manager of a network security software. I wonder if I need to learn vi ... as such I dont use it much right now.
I started learning it...and using it is so very cumbersome. IS there any other easier and more user-friendly text editor? why is vi used anyway, when it is so un-user-friendly? if its widely used then I do  need to learn it, right?

please help
0
Comment
Question by:java_lover
  • 2
4 Comments
 
LVL 40

Accepted Solution

by:
jlevie earned 30 total points
ID: 2634801
Well, no you don't have to use it. There are lots of alternatives, which ones depend on what Unix you are on. However, vi remains popular because it requires very little resources and in the case of needing to edit a file in single user mode it may be the only editor that works. I don't routinely use vi, preferring xemacs instead, but there are plenty of times that I use vi for a quick, simple edit of a small file. For a really simple edit, I can almost have it done before xemacs is fully up and ready to use. Knowing how to use the basic vi functions is a good thing.
0
 

Expert Comment

by:chansek
ID: 2634894
Hello

   If it is possible, learn VI editor. The only reason for that is all UNIX boxes like HP-UX, SUN, AIX, SCO or etc. They all have VI editor. You learn VI editor, then you could apply it anywhere. Also, you could fully manipulate the VI tools (utilities like to call file name, recall/check historical commands and etc.) in shell environment especially KORN shell.
OR
  EMACS editor is another tool for you. But, no all UNIX boxes has EMACS editor.
  Good luck.
0
 

Author Comment

by:java_lover
ID: 2638509
I wonder why its so different and hence tedious to learn. Has there been any effort in maintaining its simplicity but still make it more user-friendly?
0
 
LVL 40

Expert Comment

by:jlevie
ID: 2638542
The reason is mostly historical in nature. You have to understand that vi came about in the days when terminals were very primitive compared to what we have today. An editor was needed that could work on anything and in those days (and to some degree even today) everybody that made a terminal had their own idea of how it would work and what you could do with it. If you want to get some idea of the number of terminals, take a look through a termcap file sometime. Accordingly was structured to require only the minimum capabilities from a terminal.

Even as arcane as it looks like vi is, it was, at the time, a major improvement over what it replaced. Prior to vi, one used ed, which is a line editor. Take a look at the man page for ed and try it sometime. I think you'll find that vi is a vast improvement.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hello fellow BSD lovers, I've created a patch process for patching openjdk6 for BSD (FreeBSD specifically), although I tried to keep all BSD versions in mind when creating my patch. Welcome to OpenJDK6 on BSD First let me start with a little …
My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (http://www.experts-exchange.com/articles/OS/Unix/Solaris/Installing-the-Solaris-OS-From-the-Flash-Archive-on-a-Tape.html), discussed installing the Solaris Operating S…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

679 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question