Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

vi - do I need to learn it?

Posted on 2000-03-19
4
Medium Priority
?
358 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 40

Accepted Solution

by:
jlevie earned 90 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

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

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

Installing FreeBSD… FreeBSD is a darling of an operating system. The stability and usability make it a clear choice for servers and desktops (for the cunning). Savvy?  The Ports collection makes available every popular FOSS application and packag…
Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
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.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

596 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