文件名称:Vi.Tips.Essential.vi.2008.pdf
文件大小:1013KB
文件格式:PDF
更新时间:2012-06-04 03:42:00
vi
Introduction No Unix"class system administrator or user will get far without learning the basics of vi#1$, the widespread visual text"mode editor. Contrary to some misinformed opinions spread among users who are new to Unix"class systems, vi#1$ is not di*cult to learn. Granted, it is over thirty years old and not very friendly to beginners, but once you grasp the basic concepts, you will never have to learn another text editor again, because vi#1$ is available for all standard operating systems, including Microsoft Windows, Mac OS X, Linux, BSD, and many others. My own experience teaching vi#1$ and Unix"class system and network administration suggests that most of the problems reported by new users stem from the fact that vi#1$ is completely di%erent from any other text editor. Vi#1$ is a modal editor, which means that you need to tell it to switch between di%erent modes and commands, even when all you want to do is change a few characters. This minor inconvenience is o%set by the enormous flexibility of the editor and its seamless integration with the rest of the Unix environment. Another problem is the obscure terminology used to describe its functionality. It makes learning vi#1$ unnecessarily di*cult for no good reason. Bearing those two issues in mind, I have written a book which does not bombard you with the old terminology, but rather uses concepts that are familiar to users who are used to working with Microsoft Windows or Mac OS X and who do not know much about the ‘joys’ of working on dial"up text mode terminals. I hope this fresh new look at vi#1$ will help you learn it and become more productive. Jacek Artymiak