大家觉得Vim和Emacs哪个好?

Vim、Emacs配置和使用
davyzhu
帖子: 109
注册时间: 2009-12-06 21:23

Re: 大家觉得Vim和Emacs哪个好?

#31

帖子 davyzhu » 2010-03-29 22:57

anewbie 写了:我知道。呃,我本来想在“像是”后面加个括号,里面添上“其实是 semantic error”,但为了那句子看起来酷一点还是算了。
十几年前,高中英语老师告诉我们什么第三人称单数啊,时态啊之类属于 grammar,句子结构组合方式之类属于 syntax,词义范畴之类属于 semantic...当年怪老头的变态严格当下思之犹有余悸,现在还没敢还给他呢,呵呵。
楼又歪了。
搭车问一下, davyzhu 知不知道怎么在关机的时候自动终结掉 emacs 起的 daemon? 谢先。daemon 里面可能在执行各种任务,lisp 逐一检查然后一一善后?有没有更优雅的办法?
You can get high score in T/G, haha.
Yes, check the daemons one by one, if you prefer a safe method. Why kick off daemon in Emacs? How many numbers?
anewbie
帖子: 159
注册时间: 2009-02-24 19:39

Re: 大家觉得Vim和Emacs哪个好?

#32

帖子 anewbie » 2010-03-30 10:13

当年 G 确实考得不算太坏。
你没理解我意思。看来你没用过或很少用过神速的 emacsclient. daemon 当然只有一个,起多个 daemon 没有意义,但 daemon 里执行的任务可能有很多个。无疑地,到底有多少不可预知,因为生活不是一成不变的,永远无法预知明天肯定会干什么不会干什么。本来 emacswiki 上有一脚本,但那个并不完美,直接把 kill-emacs-hook 弄成 nil 是一件很粗暴很愚蠢的事。我发现我需要在 kill-emacs-hook 上不断加上我需要的判断,save-some-buffer 是远远不够的,对所有由 emacs 在后台起的 process 一视同仁也并不明智。于是那个 hook 带的附属品越来越长,这种不能一次解决所有问题的感觉让我很不爽。
有 emacsclient 不用在我看来暴殄天物,emacs 配上 vim 的速度很难让人割舍。大不了每次在关机前起一个 frame,像通常关掉 emacs 那样来过。
好吧,幻想完美本来就是愚蠢的,先凑合用。
davyzhu
帖子: 109
注册时间: 2009-12-06 21:23

Re: 大家觉得Vim和Emacs哪个好?

#33

帖子 davyzhu » 2010-03-30 12:17

I do use ec. But our ways may differ. I only use ec to open file like

代码: 全选

$ ec filename &
How do you use it? Any simple example?
风间星魂
帖子: 490
注册时间: 2009-06-20 23:53

Re: 大家觉得Vim和Emacs哪个好?

#34

帖子 风间星魂 » 2010-03-30 19:58

vi总有,emacs不常有。
vim的语法文件超级多……
vim文本编辑能力天下无双
vim国际化和跨平台非常不错……(编码支持,中文手册)。
vi配置文件简单,emacs配置复杂而且不懂lisp很难配置……
vi速度快
vi是一种传统

所以用vi :em06
jsjcjsjc
帖子: 152
注册时间: 2007-03-03 13:36

Re: 大家觉得Vim和Emacs哪个好?

#35

帖子 jsjcjsjc » 2010-04-02 12:58

我也推荐VIM 小巧 快捷
cyy1630
帖子: 9
注册时间: 2010-02-10 11:39

Re: 大家觉得Vim和Emacs哪个好?

#36

帖子 cyy1630 » 2010-04-02 14:33

曾经尝试emacs,无果,继续vim :em03
lct721521
帖子: 15
注册时间: 2010-03-26 8:27

Re: 大家觉得Vim和Emacs哪个好?

#37

帖子 lct721521 » 2010-04-05 19:39

额,大致看了楼上各位大侠的建议和意见,貌似emacs和vim各有千秋。再加上前两天,本人又初步尝试了一下emacs和vim,可能有一些粗浅的感觉吧。 :em01
说实话,我不太喜欢vim的风格,特别是还要在三种模式之间切换 :em03
相比之下,我比较欣赏emacs的风格,而且emacs功能要强大很多 :em01
楼上有大侠说emacs比vim难学,那么,我想,Linux比Windows难学很多,可是大家不还是一样要学要用Linux吗?
楼上有大侠说vim比emacs常见,那么,我想,Windows比Linux更加常见,可是大家不还是一样要学要用Linux吗?
当然了,两者都会最好。但我想现在先把emacs学好,然后在学vim,不知道这样做是否合理? :em11
望各位大侠多多批评指正。。。 :em01
头像
jobinson99
帖子: 1169
注册时间: 2007-04-28 15:14
系统: NixOS+虚拟机各种系统
联系:

Re: 大家觉得Vim和Emacs哪个好?

#38

帖子 jobinson99 » 2010-04-06 5:40

lct721521 写了:额,大致看了楼上各位大侠的建议和意见,貌似emacs和vim各有千秋。再加上前两天,本人又初步尝试了一下emacs和vim,可能有一些粗浅的感觉吧。 :em01
说实话,我不太喜欢vim的风格,特别是还要在三种模式之间切换 :em03
相比之下,我比较欣赏emacs的风格,而且emacs功能要强大很多 :em01
楼上有大侠说emacs比vim难学,那么,我想,Linux比Windows难学很多,可是大家不还是一样要学要用Linux吗?
楼上有大侠说vim比emacs常见,那么,我想,Windows比Linux更加常见,可是大家不还是一样要学要用Linux吗?
当然了,两者都会最好。但我想现在先把emacs学好,然后在学vim,不知道这样做是否合理? :em11
望各位大侠多多批评指正。。。 :em01
模式切换的优缺点(不是vim独特的,emacs也可以做到这种效果):
坏处:切换麻烦
好处:突然断电损失最小,或者最大程度减少乱按按键的损失(新手,家里有小孩,或者有蹦蹦跳跳的动物,或者有调皮捣蛋朋友同事的时候,只读模式很有用)

按键:
默认都复杂了,需要自己重新设置下,所以按键问题不该是争论焦点问题。

学习难度:
有人说这两者都难学,有人说emacs比vim更难学。
我的经验是:世界上没有真正难学的东西,只有没好的学习方法+没好的动力/兴趣学的东西。
如果你熟悉你的需求(比如为什么需要vim?需要vim的什么功能?是否杀鸡用牛刀了?vim是否够用了?),
如果你分阶段学习(不一口子吃成胖子),
如果你熟悉英文(emacs默认快捷键都是和英文相关的,很有规律),
那么,两者都不难,入门一两天就够了,然后根据需要,用上个一年半载的,两者都会成为神器。
黑色的不是眼睛,而是眼圈
关注和实现科技领域未来3年内有大规模普及潜力、能改善穷人生活品质的技术/应用。
NixOS + lxqt + 无人生产线 + 无人农场 (已发明全套山地农业机械 + 线性喷洒系统,成片农业采收系统)+ 随身设备,柔性电路,冷热双调衣……
头像
lilydjwg
论坛版主
帖子: 4258
注册时间: 2009-04-11 23:46
系统: Arch Linux
联系:

Re: 大家觉得Vim和Emacs哪个好?

#39

帖子 lilydjwg » 2010-04-06 13:27

jobinson99 写了:[
学习难度:
有人说这两者都难学,有人说emacs比vim更难学。
我的经验是:世界上没有真正难学的东西,只有没好的学习方法+没好的动力/兴趣学的东西。
有点想学 emacs。已经把自带的入门 tutorial 看完了。其它部分有像 Vim 的文档那样优秀的中文文档吗?
davyzhu
帖子: 109
注册时间: 2009-12-06 21:23

Re: 大家觉得Vim和Emacs哪个好?

#40

帖子 davyzhu » 2010-04-06 13:47

lilydjwg 写了:
jobinson99 写了:[
学习难度:
有人说这两者都难学,有人说emacs比vim更难学。
我的经验是:世界上没有真正难学的东西,只有没好的学习方法+没好的动力/兴趣学的东西。
有点想学 emacs。已经把自带的入门 tutorial 看完了。其它部分有像 Vim 的文档那样优秀的中文文档吗?
Though I don't know the answer of your question, I have to admit that Emacs's document(info system) is very huge and complex (As far as I know, a lot of 10-years users only know parts of them). And only updating English info file can be a daunting work for maintainer.

That means they cannot be fully translated into Chinese theoretically. But the content of Emacs info file is not hard to understand if you can pass CET test. So, try to improve your English and Emacs skill simultaneously. You can learn a lot in it.
davyzhu
帖子: 109
注册时间: 2009-12-06 21:23

Re: 大家觉得Vim和Emacs哪个好?

#41

帖子 davyzhu » 2010-04-06 14:05

The taste of choosing VIM/Emacs is largely affected by the taste of your mentors, friends and colleagues.
Take me as example, my friends in University use Ultraedit, so I am familar with UE first, UE is the god of Editor in my heart:) .
Then I go to company, my first mentor is a Vi guy, so I turn to Vi. My closest colleague recommend Emacs not long ago, so I take time to learn and use Emacs ever since.

Self-learning is really hard, following someone work with you is easier.

BTW, grammar guy, so long not see, any suggestion:)
头像
lilydjwg
论坛版主
帖子: 4258
注册时间: 2009-04-11 23:46
系统: Arch Linux
联系:

Re: 大家觉得Vim和Emacs哪个好?

#42

帖子 lilydjwg » 2010-04-06 22:02

davyzhu 写了: .......
That means they cannot be fully translated into Chinese theoretically. But the content of Emacs info file is not hard to understand if you can pass CET test. So, try to improve your English and Emacs skill simultaneously. You can learn a lot in it.
I wished reading this kind of materials could improve my scores in English exams. True it has improved my English ability greatly, but not my SCORES pitifully. Sigh.... I have to prepare for CET6 now and have to read as many students' texts to pass it.

Another reason I try to find Chinese docs is, many a time I have to explain sth to my teacher or classmates, so I have to know how to translate.

Why I have chosen Vim? Just because when I sought for a new text editor as my old one is EditPad Pro without a lisence, I found the word 'Vim' more beautiful to me, and there is a great tutorial for Vim -- 《大家來學 Vim》 by 李果正.
davyzhu
帖子: 109
注册时间: 2009-12-06 21:23

Re: 大家觉得Vim和Emacs哪个好?

#43

帖子 davyzhu » 2010-04-07 15:56

lilydjwg 写了:
davyzhu 写了: .......
That means they cannot be fully translated into Chinese theoretically. But the content of Emacs info file is not hard to understand if you can pass CET test. So, try to improve your English and Emacs skill simultaneously. You can learn a lot in it.
I wished reading this kind of materials could improve my scores in English exams. True it has improved my English ability greatly, but not my SCORES pitifully. Sigh.... I have to prepare for CET6 now and have to read as many students' texts to pass it.

Another reason I try to find Chinese docs is, many a time I have to explain sth to my teacher or classmates, so I have to know how to translate.

Why I have chosen Vim? Just because when I sought for a new text editor as my old one is EditPad Pro without a lisence, I found the word 'Vim' more beautiful to me, and there is a great tutorial for Vim -- 《大家來學 Vim》 by 李果正.
CET6 is a bit hard to pass or get a high score. I remember I have taken a month (2 hours per day do exercises) to prepare for it. The test is not that useful like new TOEFL.

Ability is more important than score is the golden rule.

Never judge software by name like never judge people by face. There are so few good Chinese tutorial, and tutorial cannot replace user manual. Give Emacs another chance someday and I promise that will be an eye-open day.

Good luck for your test:)
头像
realfiona
帖子: 137
注册时间: 2007-11-20 10:58
来自: Hangzhou, China
联系:

Re: 大家觉得Vim和Emacs哪个好?

#44

帖子 realfiona » 2010-04-10 10:57

《A Byte Of Vim》
头像
jobinson99
帖子: 1169
注册时间: 2007-04-28 15:14
系统: NixOS+虚拟机各种系统
联系:

Re: 大家觉得Vim和Emacs哪个好?

#45

帖子 jobinson99 » 2010-04-12 1:23

lilydjwg 写了:
jobinson99 写了:[
学习难度:
有人说这两者都难学,有人说emacs比vim更难学。
我的经验是:世界上没有真正难学的东西,只有没好的学习方法+没好的动力/兴趣学的东西。
有点想学 emacs。已经把自带的入门 tutorial 看完了。其它部分有像 Vim 的文档那样优秀的中文文档吗?
直接看别人的配置文件啊,尤其是说明很好的配置。
;我的配置说明是中文的,记录的是我入门的经验,基本上可以当入门教程了。不过还没满意,所以就没把配置共享出来。

刚看到的CrazyVibes的一段比喻:
emacs 是秘书, vim 是打字员. 秘书和打字员的区别在于, 秘书是通才, 打字员是专才. 秘书的培养目标是学习适应新的, 不同的任务, 打字员的培养目标是提高打字的准确率和速度. 当新的任务和要求出现的时候, 秘书是有经验, 有准备, 有能力面对新的挑战的, 而作为专才的打字员则往往力不从心. 那么为什么 emacs 就是通才而 vim 只能是专才? 因为 emacs 实际上是一个 elisp 的虚拟机, elisp 是一门通用编程语言. 而 vim 的设计就是为了追求速度和灵巧用 C 语言编写的, 它的功能是作者预定的, 使用者的身份就是单纯的使用者, 没有多少改变的余地.

实际上, vim 的作者意识到了缺乏用户扩展功能是一个重大的缺陷, 所以有了 vimscript. vimscript 和 elisp 之间的区别, 大约相当于社区大学进修文凭和哈佛商学院文凭之间的区别.
黑色的不是眼睛,而是眼圈
关注和实现科技领域未来3年内有大规模普及潜力、能改善穷人生活品质的技术/应用。
NixOS + lxqt + 无人生产线 + 无人农场 (已发明全套山地农业机械 + 线性喷洒系统,成片农业采收系统)+ 随身设备,柔性电路,冷热双调衣……
回复