China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-08-01 21:55
中国DOS联盟论坛 » DOS开发编程 & 发展交流 (开发室) » Who is more familiar with VI? Give some opinions~ View 1,633 Replies 13
Original Poster Posted 2005-11-27 00:48 ·  中国 重庆 渝中区 电信
银牌会员
★★★
Credits 2,165
Posts 730
Joined 2004-04-21 00:00
22-year member
UID 22966
Gender Male
Status Offline
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?
Floor 2 Posted 2005-11-27 10:24 ·  中国 山东 济宁 联通
钻石会员
★★★★★
Credits 10,051
Posts 3,040
Joined 2002-11-11 00:00
23-year member
UID 223
Gender Male
Status Offline
I also used VI under Linux for a while, and then threw it and Linux into the trash can together. Hehe.
简单就是美
Floor 3 Posted 2005-11-27 12:20 ·  加拿大 Bell
系统支持
★★★★★★
“新DOS时代”站长
Credits 27,736
Posts 10,521
Joined 2002-10-09 12:00
23-year member
UID 9
Status Offline
Indeed, the EDIT in MS-DOS 7 is much more practical than it.
Wengier - 新DOS时代

欢迎大家来到我的“新DOS时代”网站,里面有各类DOS软件和资料,地址:
http://wendos.mycool.net/

E-Mail & MSN: wengierwu AT hotmail.com (最近比较忙,有事请联系DOSroot和雨露,谢谢!)

Floor 4 Posted 2005-11-27 13:07 ·  中国 广东 广州 教育网
铂金会员
★★★★
C++启程者
Credits 5,154
Posts 1,827
Joined 2003-07-18 00:00
23-year member
UID 7105
Gender Male
Status Offline
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 ]
Floor 5 Posted 2005-11-27 14:10 ·  中国 广东 中山 电信
高级用户
★★★
Credits 972
Posts 420
Joined 2004-05-16 00:00
22-year member
UID 24467
Gender Male
Status Offline
vi emacs awk sed all good dd
平生进退如飙风
Floor 6 Posted 2005-11-29 09:28 ·  中国 北京 鹏博士宽带
新手上路
Credits 2
Posts 1
Joined 2005-11-29 08:55
20-year member
UID 46149
Status Offline
Writing small files, no difference from Notepad. Regular expressions can be used inside.
Floor 7 Posted 2005-11-29 14:50 ·  中国 重庆 广电网
中级用户
★★
Credits 236
Posts 101
Joined 2005-11-27 19:35
20-year member
UID 46050
Status Offline
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
Floor 8 Posted 2005-12-01 23:56 ·  中国 重庆 九龙坡区 电信
银牌会员
★★★
Credits 2,165
Posts 730
Joined 2004-04-21 00:00
22-year member
UID 22966
Gender Male
Status Offline
to rocchapter:
The syntax coloring is formed by recording keywords through a special data file.
Floor 9 Posted 2005-12-03 16:41 ·  中国 重庆 渝中区 联通
中级用户
★★
Credits 236
Posts 101
Joined 2005-11-27 19:35
20-year member
UID 46050
Status Offline
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.
Floor 10 Posted 2005-12-11 23:05 ·  中国 浙江 杭州 电信
新手上路
Credits 8
Posts 2
Joined 2005-12-11 22:51
20-year member
UID 46951
Gender Male
Status Offline
You can't experience the power when using a sledgehammer to kill a chicken.
Floor 11 Posted 2005-12-12 17:06 ·  中国 重庆 渝中区 联通
中级用户
★★
Credits 236
Posts 101
Joined 2005-11-27 19:35
20-year member
UID 46050
Status Offline
That's it. It is said that Emacs can also make tea:}
Floor 12 Posted 2006-06-23 23:54 ·  中国 陕西 西安 电信
新手上路
Credits 16
Posts 4
Joined 2006-03-26 17:11
20-year member
UID 52830
Status Offline
I like VIM the most, heh heh. Now I also use this under Windows. It's easy to use!
Floor 13 Posted 2006-06-24 04:16 ·  中国 福建 三明 电信
高级用户
★★
苏醒的沉睡者
Credits 659
Posts 217
Joined 2003-02-15 00:00
23-year member
UID 930
Gender Male
From 福建
Status Offline
Big things can't be put into small boxes
好久没碰Dos,手都生了,赶紧回来练练.嘿嘿
Floor 14 Posted 2006-06-24 13:25 ·  中国 上海 虹口区 电信
高级用户
★★
Credits 653
Posts 252
Joined 2006-04-16 19:48
20-year member
UID 53939
Status Offline
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 ]
Forum Jump: