|
bush
银牌会员
    
积分 2165
发帖 730
注册 2004-4-21
状态 离线
|
『楼 主』:
誰用VI比較熟?給點看法~
使用 LLM 解释/回答一下
一到GNU的世界,就發現到處都充斥著對VI這個編輯器的溢美之詞,不過我拿來用了一段時間,縂覺得怪怪的。也不認爲有什麽強大之処。
或者是我還沒摸門道?
誰能告訴我,VI到底有別于其它軟件的魅力之処何在?

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?

|
|
2005-11-27 00:48 |
|
|
Michael
钻石会员
       
积分 10046
发帖 3039
注册 2002-11-11
状态 离线
|
『第 2 楼』:
使用 LLM 解释/回答一下
我也在Linux下用过一会儿VI,随后就把它连同Linux一起,扔进垃圾堆了。
呵呵。
I also used VI under Linux for a while, and then threw it and Linux into the trash can together. Hehe.
|

简单就是美 |
|
2005-11-27 10:24 |
|
|
Wengier
系统支持
             “新DOS时代”站长
积分 27736
发帖 10521
注册 2002-10-9
状态 离线
|
『第 3 楼』:
使用 LLM 解释/回答一下
确实,MS-DOS7中的那个EDIT就比它实用多了。
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和雨露,谢谢!)
 |
|
2005-11-27 12:20 |
|
|
GOTOmsdos
铂金会员
       C++启程者
积分 5154
发帖 1827
注册 2003-7-18
状态 离线
|
『第 4 楼』:
使用 LLM 解释/回答一下
你如果用记事本就可做好的事,用VI,那当然是痛苦啊!
但如果你要编码时实现嵌入功能,等等整合功能,VI那就显示出强大作用啦!
比如,简单例子, 如果你想把运行命令或程序的结果插入到文件其中,就按某个键,这时现打的功能就暂时屏蔽,在里面运行命令或程序,自动把结果插入的,要回到普通输入,在按键回来...
可谓高段程序员的编程利器啊!,WATCOM的DOS编辑器就是DOS下VI
这方面,最强大的是Emacs!)
Last edited by GOTOmsdos on 2005-11-27 at 13:08 ]
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 ]
|
|
2005-11-27 13:07 |
|
|
darkradx
高级用户
   
积分 972
发帖 420
注册 2004-5-16
状态 离线
|
『第 5 楼』:
使用 LLM 解释/回答一下
vi emacs awk sed all good dd
vi emacs awk sed all good dd
|

平生进退如飙风 |
|
2005-11-27 14:10 |
|
|
pingasi
新手上路

积分 2
发帖 1
注册 2005-11-29
状态 离线
|
『第 6 楼』:
使用 LLM 解释/回答一下
写小文件,和记事本每区别。里面可以用正则表达式。
Writing small files, no difference from Notepad. Regular expressions can be used inside.
|
|
2005-11-29 09:28 |
|
|
rocchapter
中级用户
  
积分 236
发帖 101
注册 2005-11-27
状态 离线
|
『第 7 楼』:
使用 LLM 解释/回答一下
Emacs也是用起来比较难的,我有dos版的,原来在linux下用过,它有一个教程
24小时的教程还是一个”速成教程"
我有一个dos下的vi,不过很小,不知道能不能像linux下的vi那样有语法 加色
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
|
|
2005-11-29 14:50 |
|
|
bush
银牌会员
    
积分 2165
发帖 730
注册 2004-4-21
状态 离线
|
『第 8 楼』:
使用 LLM 解释/回答一下
to rocchapter:
语法 加色是由专门的数据文件记录关键字形成的。
to rocchapter:
The syntax coloring is formed by recording keywords through a special data file.
|
|
2005-12-1 23:56 |
|
|
rocchapter
中级用户
  
积分 236
发帖 101
注册 2005-11-27
状态 离线
|
『第 9 楼』:
使用 LLM 解释/回答一下
这个原理我也知道一些,在linux下的vim有专门的文件记录一种语法加亮的规则,然后用syntax on 打开,但dos下的版本不知道怎么设,我下的vi dos版只有1个主程序
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.
|
|
2005-12-3 16:41 |
|
|
xxx222
新手上路

积分 8
发帖 2
注册 2005-12-11
状态 离线
|
『第 10 楼』:
使用 LLM 解释/回答一下
杀鸡用牛刀的时候体会不出强大来。
You can't experience the power when using a sledgehammer to kill a chicken.
|
|
2005-12-11 23:05 |
|
|
rocchapter
中级用户
  
积分 236
发帖 101
注册 2005-11-27
状态 离线
|
『第 11 楼』:
使用 LLM 解释/回答一下
就是这样的。据说Emacs还可以点茶呢:}
That's it. It is said that Emacs can also make tea:}
|
|
2005-12-12 17:06 |
|
|
test029
新手上路

积分 16
发帖 4
注册 2006-3-26
状态 离线
|
『第 12 楼』:
使用 LLM 解释/回答一下
我最喜欢VIM了,呵呵,现在我在windows 下也使用这个。好用!!
I like VIM the most, heh heh. Now I also use this under Windows. It's easy to use!
|
|
2006-6-23 23:54 |
|
|
070
高级用户
    苏醒的沉睡者
积分 659
发帖 217
注册 2003-2-15 来自 福建
状态 离线
|
『第 13 楼』:
使用 LLM 解释/回答一下
大的东西是不能塞进小箱子的
Big things can't be put into small boxes
|

好久没碰Dos,手都生了,赶紧回来练练.嘿嘿 |
|
2006-6-24 04:16 |
|
|
asbai
高级用户
   
积分 653
发帖 252
注册 2006-4-16
状态 离线
|
『第 14 楼』:
使用 LLM 解释/回答一下
在任何平台文本和16进制编辑,偶只用VI(唯一指定,^_^)
1. vi 是唯一能在telnet和ssh下用完整功能的编辑器,emacs在telnet下也可以用,但是有限功能没法用很爽。edit?你试试就知道了~~
2. 基本是个操作系统就有VI,还没听说过哪个平台不能跑它。
3. 编辑命令、语法高亮、自动完成、folder(段落自动折叠)、diffview、map、及其强大的正则增强、任意多的剪贴板、ftp/http直接编辑、宏录制、与编译器及各种第三方工具集成、直接正则或者tag扫描指定目录和子目录下的所有文件内容。。。。。
4. 内嵌强大的,基于事件和过程的类C角本引擎,几乎能够完成任何事。当然,文本处理功能方面更是及其突出。
5. 支持丰富的命令行选项扩展Ex模式和filter(管道)模式,而且由于在任何平台上都有VI,将这些和它强大的角本结合起来可以写跨平台的超强批处理。俺认识不少月薪5位数的技术顾问就凭sh+vim角本吃饭。
6. 你的手指永远不用离开键盘的基本区域(字母、数字和回车那块),既可以最大限度的避免肌群切换,又保证你在最老的,没有方向键、home键、Alt键、Function键等等的VT终端上也可以全功能高效使用(别笑,我玩过很多IBM和HP小机还是靠这种终端和串口连上去的,而且这样做的理由很多也很充分,不解释~)。
7. VIm最致命的缺点:门槛太高User Guide 用A4 print出来就上千页纸;User Manual更加恐怖(至少多一倍,具体没print过)。但是由于它无与伦比的价值,还是推荐把user guide打出来,就算你每天上厕所的时候顺“便”看个10页,看完前300页就已经可以成为一般高手了,看完600页就是绝对的高级用户,最后几百页主要讲VI的角本语言和为角本提供的API环境,把这部分也看了你就能用VI做任何事了。
Last edited by asbai on 2006-6-24 at 13:27 ]
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 ]
|
|
2006-6-24 13:25 |
|