中国DOS联盟论坛

China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
Guest | Log in | Register | Members | Search | China DOS Union
中国DOS联盟论坛
The time now is 2026-08-01 21:02
48,037 topics / 350,122 posts / today 2 new / 48,249 members
DOS开发编程 & 发展交流 (开发室) » Who is more familiar with VI? Give some opinions~
Printable Version  1,631 / 13
Floor1 bush Posted 2005-11-27 00:48
银牌会员 Posts 730 Credits 2,165
As soon as I entered the GNU world, I found that there were praises for the VI editor everywhere. However, after using it for a while, I always felt something was odd. I also didn't think it had any great strengths. Or is it that I haven't got the hang of it yet? Who can tell me what the charm of VI lies in that distinguishes it from other software?
Floor2 Michael Posted 2005-11-27 10:24
钻石会员 Posts 3,040 Credits 10,051
I also used VI under Linux for a while, and then threw it and Linux into the trash can together. Hehe.
Floor3 Wengier Posted 2005-11-27 12:20
系统支持 Posts 10,521 Credits 27,736
Indeed, the EDIT in MS-DOS 7 is much more practical than it.
Floor4 GOTOmsdos Posted 2005-11-27 13:07
铂金会员 Posts 1,827 Credits 5,154
If you can do things well with Notepad, using VI is of course painful! But if you need to achieve embedding functions and other integration functions during coding, VI then shows its powerful role! For example, a simple example: if you want to insert the result of running a command or program into a file, just press a certain key, then the current typing function is temporarily blocked, run the command or program inside, and the result is automatically inserted. To return to normal input, press the key back... It can be said to be a powerful programming tool for advanced programmers! WATCOM's DOS editor is VI under DOS. In this regard, the most powerful one is Emacs!

[ Last edited by GOTOmsdos on 2005-11-27 at 13:08 ]
Floor5 darkradx Posted 2005-11-27 14:10
高级用户 Posts 420 Credits 972
vi emacs awk sed all good dd
Floor6 pingasi Posted 2005-11-29 09:28
新手上路 Posts 1 Credits 2
Writing small files, no difference from Notepad. Regular expressions can be used inside.
Floor7 rocchapter Posted 2005-11-29 14:50
中级用户 Posts 101 Credits 236
Emacs is also relatively difficult to use. I have the DOS version. I used it under Linux before. It has a tutorial. A 24-hour tutorial or a "crash course"

I have a vi under DOS, but it's very small. I don't know if it can have syntax coloring like the vi under Linux
Floor8 bush Posted 2005-12-01 23:56
银牌会员 Posts 730 Credits 2,165
to rocchapter:
The syntax coloring is formed by recording keywords through a special data file.
Floor9 rocchapter Posted 2005-12-03 16:41
中级用户 Posts 101 Credits 236
I also know some of this principle. In Linux, there is a special file in vim that records the rules for syntax highlighting, and then you turn it on with "syntax on". But I don't know how to set it in the DOS version. The DOS version of vi I downloaded only has one main program.
Floor10 xxx222 Posted 2005-12-11 23:05
新手上路 Posts 2 Credits 8
You can't experience the power when using a sledgehammer to kill a chicken.
Floor11 rocchapter Posted 2005-12-12 17:06
中级用户 Posts 101 Credits 236
That's it. It is said that Emacs can also make tea:}
Floor12 test029 Posted 2006-06-23 23:54
新手上路 Posts 4 Credits 16
I like VIM the most, heh heh. Now I also use this under Windows. It's easy to use!
Floor13 070 Posted 2006-06-24 04:16
高级用户 Posts 217 Credits 659 From 福建
Big things can't be put into small boxes
Floor14 asbai Posted 2006-06-24 13:25
高级用户 Posts 252 Credits 653
In any platform text and hexadecimal editing, I only use VI (the only one specified, ^_^)

1. vi is the only editor that can use full functions under telnet and ssh. Emacs can also be used under telnet, but with limited functions and can't be used very comfortably. Edit? You can try it and see~~

2. Basically, every operating system has VI, and I haven't heard of any platform that can't run it.

3. Editing commands, syntax highlighting, auto-completion, folder (paragraph automatic folding), diffview, map, extremely powerful regular enhancements, any number of clipboards, direct editing via ftp/http, macro recording, integration with compilers and various third-party tools, direct regular or tag scanning of the contents of all files in specified directories and subdirectories...

4. Embedded powerful C-like script engine based on events and procedures, almost able to do anything. Of course, the text processing function is also extremely prominent.

5. Supports rich command-line option expansion Ex mode and filter (pipeline) mode, and because there is VI on any platform, combining these with its powerful script can write cross-platform super batch processing. I know many technical consultants with monthly salaries in five figures who rely on sh + vim scripts for a living.

6. Your fingers never need to leave the basic area of the keyboard (letters, numbers, and the enter key area), which can not only maximize the avoidance of muscle group switching, but also ensure that you can use it fully and efficiently on the oldest VT terminals without arrow keys, home keys, Alt keys, Function keys, etc. (Don't laugh, I have played with many IBM and HP minicomputers and still connected via such terminals and serial ports, and there are many good reasons for doing this, not explained~).

7. The most fatal shortcoming of VIm: the threshold is too high. The User Guide printed on A4 paper is more than a thousand pages; the User Manual is even more terrifying (at least twice as much, I haven't printed it specifically). But because of its unparalleled value, it is still recommended to print out the user guide. Even if you read 10 pages every time you go to the toilet, after reading the first 300 pages, you can already become a general expert. After reading 600 pages, you are an absolute advanced user. The last few hundred pages mainly talk about the VI script language and the API environment provided for the script. After reading this part, you can use VI to do anything.

[ Last edited by asbai on 2006-6-24 at 13:27 ]
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023