抱怨,准备入手vim或者emacs

Vim、Emacs配置和使用
sirxenofex
帖子: 204
注册时间: 2008-01-07 16:39

Re: 抱怨,准备入手vim或者emacs

#31

帖子 sirxenofex » 2010-03-04 16:11

jobinson99 写了:选了emacs了。
vim的按键次数,我仔细数了下,其实比emacs多
比如从编辑状态退出,需要esc+组合键:+q+enter (总共按了5个按钮,分4次完成)
而emacs的退出,只需要两次组合键:ctrl+x ctrl+c (总共按了四个按钮,分两次完成)
emacs里C-x C-c之后,如果没保存,还得选择保存还是不保存。如果要保存,就要C-x C-s先,这样一共按了4个键;
vim里边,可以ESC ZZ或者ESC ZQ,其实更少
davyzhu
帖子: 109
注册时间: 2009-12-06 21:23

Re: 抱怨,准备入手vim或者emacs

#32

帖子 davyzhu » 2010-03-04 16:23

sirxenofex 写了:
jobinson99 写了:选了emacs了。
vim的按键次数,我仔细数了下,其实比emacs多
比如从编辑状态退出,需要esc+组合键:+q+enter (总共按了5个按钮,分4次完成)
而emacs的退出,只需要两次组合键:ctrl+x ctrl+c (总共按了四个按钮,分两次完成)
emacs里C-x C-c之后,如果没保存,还得选择保存还是不保存。如果要保存,就要C-x C-s先,这样一共按了4个键;
vim里边,可以ESC ZZ或者ESC ZQ,其实更少
所以说要改emacs的key-binding
头像
jobinson99
帖子: 1169
注册时间: 2007-04-28 15:14
系统: NixOS+虚拟机各种系统
联系:

Re: 抱怨,准备入手vim或者emacs

#33

帖子 jobinson99 » 2010-03-10 22:12

完了完了,emacs被我配坏了。现在图片/pdf打开都成了文本了。
看着哪几千行我用来配置的代码,我真的怕了。
黑色的不是眼睛,而是眼圈
关注和实现科技领域未来3年内有大规模普及潜力、能改善穷人生活品质的技术/应用。
NixOS + lxqt + 无人生产线 + 无人农场 (已发明全套山地农业机械 + 线性喷洒系统,成片农业采收系统)+ 随身设备,柔性电路,冷热双调衣……
头像
lilydjwg
论坛版主
帖子: 4258
注册时间: 2009-04-11 23:46
系统: Arch Linux
联系:

Re: 抱怨,准备入手vim或者emacs

#34

帖子 lilydjwg » 2010-03-10 22:31

sirxenofex 写了:
jobinson99 写了:选了emacs了。
vim的按键次数,我仔细数了下,其实比emacs多
比如从编辑状态退出,需要esc+组合键:+q+enter (总共按了5个按钮,分4次完成)
而emacs的退出,只需要两次组合键:ctrl+x ctrl+c (总共按了四个按钮,分两次完成)
emacs里C-x C-c之后,如果没保存,还得选择保存还是不保存。如果要保存,就要C-x C-s先,这样一共按了4个键;
vim里边,可以ESC ZZ或者ESC ZQ,其实更少
我是这样的:保存并退出编辑状态 <C-s>(没有修改过当然不会再写一遍文件),<C-D>退出。如果放弃更改的话就<Esc>(被映射到了 CapsLock)然后 ZQ。
头像
jobinson99
帖子: 1169
注册时间: 2007-04-28 15:14
系统: NixOS+虚拟机各种系统
联系:

Re: 抱怨,准备入手vim或者emacs

#35

帖子 jobinson99 » 2010-03-10 22:52

lilydjwg 写了:
sirxenofex 写了:
jobinson99 写了:选了emacs了。
vim的按键次数,我仔细数了下,其实比emacs多
比如从编辑状态退出,需要esc+组合键:+q+enter (总共按了5个按钮,分4次完成)
而emacs的退出,只需要两次组合键:ctrl+x ctrl+c (总共按了四个按钮,分两次完成)
emacs里C-x C-c之后,如果没保存,还得选择保存还是不保存。如果要保存,就要C-x C-s先,这样一共按了4个键;
vim里边,可以ESC ZZ或者ESC ZQ,其实更少
我是这样的:保存并退出编辑状态 <C-s>(没有修改过当然不会再写一遍文件),<C-D>退出。如果放弃更改的话就<Esc>(被映射到了 CapsLock)然后 ZQ。
这个几个常用的,我和别的编辑器一样,比如退出是C-q,关闭标签/tabar(包括frame,先关window,再frame,关完最后关buffer,一直到剩下最后一个buffer)是C-w,保存剪切复制粘帖,当然是C-s,C-x,C-c,C-v了。新建frame是C-n ,新建标签是C-t (这个是抄袭浏览器的)
黑色的不是眼睛,而是眼圈
关注和实现科技领域未来3年内有大规模普及潜力、能改善穷人生活品质的技术/应用。
NixOS + lxqt + 无人生产线 + 无人农场 (已发明全套山地农业机械 + 线性喷洒系统,成片农业采收系统)+ 随身设备,柔性电路,冷热双调衣……
头像
qkbeyond
帖子: 1486
注册时间: 2010-01-03 12:38
来自: 你他妈找死啊
联系:

Re: 抱怨,准备入手vim或者emacs

#36

帖子 qkbeyond » 2010-03-10 23:00

jobinson99 写了:tenzu太水了,是不是直接订阅更新的rss,然后抢楼的啊?
建议以后水的时候,后面再附上一条命令行+命令行用法,这样利己利他啊
这个rss怎么订啊
  • 我希望我的心上人也能理解这一点,这一切的开始并不是为了什么价值、责任、过去或是未来,这一切甚至不是为了现在,这一切只是源于passion。
头像
banban
帖子: 3340
注册时间: 2008-03-23 17:01

Re: 抱怨,准备入手vim或者emacs

#37

帖子 banban » 2010-03-11 0:03

偶支持Vi哈 很好记的 呵呵 lz考虑下吧 嘻嘻
头像
jobinson99
帖子: 1169
注册时间: 2007-04-28 15:14
系统: NixOS+虚拟机各种系统
联系:

Re: 抱怨,准备入手vim或者emacs

#38

帖子 jobinson99 » 2010-03-11 0:54

pocoyo 写了:
jobinson99 写了:tenzu太水了,是不是直接订阅更新的rss,然后抢楼的啊?
建议以后水的时候,后面再附上一条命令行+命令行用法,这样利己利他啊
这个rss怎么订啊
可能不是rss,是订阅了查看新帖那个搜索页面。google有个服务,是把所有的网页转化为可订阅的页面(其实就是加大搜索爬虫频率)
楼上的,我都选了emacs了,另外,给别人建议的时候,最好附上理由,这种“我使用……”的号召力,只有明星们对fans能做到,对其他人无效。
黑色的不是眼睛,而是眼圈
关注和实现科技领域未来3年内有大规模普及潜力、能改善穷人生活品质的技术/应用。
NixOS + lxqt + 无人生产线 + 无人农场 (已发明全套山地农业机械 + 线性喷洒系统,成片农业采收系统)+ 随身设备,柔性电路,冷热双调衣……
头像
vfantasie
帖子: 9
注册时间: 2010-03-27 21:20

Re: 抱怨,准备入手vim或者emacs

#39

帖子 vfantasie » 2010-03-27 21:45

我推荐VIM :em11

首先,Emacs的启动速度太令人无语了,我记得我刚安装了一个必备模板插件Yasnippet,启动速度瞬间就卡了
我当时就无语了,我的机机虽然不好,但是也不至于吧? :em06 真怕插件安多了变成小Eclipse。相比之下,vim无论
体积还是启动都比较让人满意。

顺便,看lz对python有研究吧?VIM可以通过python,ruby等众多语言扩展(当然,这样扩展出来的东东你要要在有python的机子上跑)
大可不必研究Emacs的内置语言了,个人以为LISP的语法相当不够优雅。
而且我发现VIM+python的体积比单单一个Emacs的体积大不了多少。 :em20

:em09 这个链接里面是VIM资料集中营:
https://dl.dropbox.com/u/1151037/vimwiki/Vim.html

还有,推荐几个我用的VIM插件:

必备
taglist.vim [http://www.vim.org/scripts/script.php?script_id=273]
FencView.vim [http://www.vim.org/scripts/script.php?script_id=1708]
The NERD tree [http://www.vim.org/scripts/script.php?script_id=1658]
The NERD Commenter [http://www.vim.org/scripts/script.php?script_id=1218]
snipMate [http://www.vim.org/scripts/script.php?script_id=2540]
fuzzyfinder.vim [http://www.vim.org/scripts/script.php?script_id=1984]

个人喜欢
Open terminal [http://www.vim.org/scripts/script.php?script_id=2896]
matchit.zip [http://www.vim.org/scripts/script.php?script_id=39]
bufexplorer.zip [http://www.vim.org/scripts/script.php?script_id=42]
Vimball [http://www.vim.org/scripts/script.php?script_id=1502]
ManPageView [http://www.vim.org/scripts/script.php?script_id=489]
CmdlineComplete [http://www.vim.org/scripts/script.php?script_id=2222]
ShowMarks [http://www.vim.org/scripts/script.php?script_id=2142]
php.vim [http://www.vim.org/scripts/script.php?script_id=1571]
css_color.vim [http://www.vim.org/scripts/script.php?script_id=2150]
STL improved [http://www.vim.org/scripts/script.php?script_id=2224]
yaml.vim [http://www.yaml.org/]
DoxygenToolkit.vim [http://www.vim.org/scripts/script.php?script_id=987]
TaskList.vim [http://www.vim.org/scripts/script.php?script_id=2607]
Mark [http://www.vim.org/scripts/script.php?script_id=2666]
vis [http://www.vim.org/scripts/script.php?script_id=1195]
dictview.vim [http://www.vim.org/scripts/script.php?script_id=2342]
Modeliner [http://www.vim.org/scripts/script.php?script_id=1477]
davyzhu
帖子: 109
注册时间: 2009-12-06 21:23

Re: 抱怨,准备入手vim或者emacs

#40

帖子 davyzhu » 2010-03-27 22:03

vfantasie 写了:我推荐VIM :em11

首先,Emacs的启动速度太令人无语了,我记得我刚安装了一个必备模板插件Yasnippet,启动速度瞬间就卡了
我当时就无语了,我的机机虽然不好,但是也不至于吧? :em06 真怕插件安多了变成小Eclipse。相比之下,vim无论
体积还是启动都比较让人满意。

顺便,看lz对python有研究吧?VIM可以通过python,ruby等众多语言扩展(当然,这样扩展出来的东东你要要在有python的机子上跑)
大可不必研究Emacs的内置语言了,个人以为LISP的语法相当不够优雅。
而且我发现VIM+python的体积比单单一个Emacs的体积大不了多少。 :em20

:em09 这个链接里面是VIM资料集中营:
https://dl.dropbox.com/u/1151037/vimwiki/Vim.html

还有,推荐几个我用的VIM插件:

必备
taglist.vim [http://www.vim.org/scripts/script.php?script_id=273]
FencView.vim [http://www.vim.org/scripts/script.php?script_id=1708]
The NERD tree [http://www.vim.org/scripts/script.php?script_id=1658]
The NERD Commenter [http://www.vim.org/scripts/script.php?script_id=1218]
snipMate [http://www.vim.org/scripts/script.php?script_id=2540]
fuzzyfinder.vim [http://www.vim.org/scripts/script.php?script_id=1984]

个人喜欢
Open terminal [http://www.vim.org/scripts/script.php?script_id=2896]
matchit.zip [http://www.vim.org/scripts/script.php?script_id=39]
bufexplorer.zip [http://www.vim.org/scripts/script.php?script_id=42]
Vimball [http://www.vim.org/scripts/script.php?script_id=1502]
ManPageView [http://www.vim.org/scripts/script.php?script_id=489]
CmdlineComplete [http://www.vim.org/scripts/script.php?script_id=2222]
ShowMarks [http://www.vim.org/scripts/script.php?script_id=2142]
php.vim [http://www.vim.org/scripts/script.php?script_id=1571]
css_color.vim [http://www.vim.org/scripts/script.php?script_id=2150]
STL improved [http://www.vim.org/scripts/script.php?script_id=2224]
yaml.vim [http://www.yaml.org/]
DoxygenToolkit.vim [http://www.vim.org/scripts/script.php?script_id=987]
TaskList.vim [http://www.vim.org/scripts/script.php?script_id=2607]
Mark [http://www.vim.org/scripts/script.php?script_id=2666]
vis [http://www.vim.org/scripts/script.php?script_id=1195]
dictview.vim [http://www.vim.org/scripts/script.php?script_id=2342]
Modeliner [http://www.vim.org/scripts/script.php?script_id=1477]
1. Emacs start-up speed slow?
Maybe you did not compile the code into byte code, It's fast in my old HP laptop(30+ modes in less than 5 seconds).
2. Lisp is not elegant?
It's depends on one's taste, but after write code in a bunch of language(C/C++, Java, Perl, Tcl, Python, etc.), I think Lisp/Scheme is the best one in language elegance (maybe not easy to learn, take SICP as example).
头像
vfantasie
帖子: 9
注册时间: 2010-03-27 21:20

Re: 抱怨,准备入手vim或者emacs

#41

帖子 vfantasie » 2010-03-28 0:22

LS好有趣啊,看得懂中文又用英文回复…… :em04

好吧,我也来试一下:
1. I didn't try to compile Emacs. I download it from FSF, and I found it is really really slow(in my XP box). :em06

2. "个人以为LISP的语法相当不够优雅。" ==Translate to Enlgish==> "*Personally speaking*, I think LISP is not elegant."
And most importantly, jobinson99 has already mastered python, he needn't to learn a new(and probably hard) language to
extend VIM.

:em06 I don't wanna start another Editor War here~
What I've said are only my personal view.
I just wanna recommend VIM, which I think is very excellent choice, to jobinson99, :em11
davyzhu
帖子: 109
注册时间: 2009-12-06 21:23

Re: 抱怨,准备入手vim或者emacs

#42

帖子 davyzhu » 2010-03-28 12:01

vfantasie 写了:LS好有趣啊,看得懂中文又用英文回复…… :em04

好吧,我也来试一下:
1. I didn't try to compile Emacs. I download it from FSF, and I found it is really really slow(in my XP box). :em06

2. "个人以为LISP的语法相当不够优雅。" ==Translate to Enlgish==> "*Personally speaking*, I think LISP is not elegant."
And most importantly, jobinson99 has already mastered python, he needn't to learn a new(and probably hard) language to
extend VIM.

:em06 I don't wanna start another Editor War here~
What I've said are only my personal view.
I just wanna recommend VIM, which I think is very excellent choice, to jobinson99, :em11
-1. I don't want to start editor war, I used to be vim user since 7+ years ago, and I can say I know both editor not as an fresh user.
0. My Chinese input method crashed due to some applet issue, sorry.
1. I mean compile *.el code into *.elc code(not binary code, but byte code) will give you some start-up speed up.
2. Python, Perl, Ruby, etc, have their own advantage over Lisp. But consider Emacs functionality, elisp is maybe a better choice.
People tried to extend Emacs with some language like Python etc finally failed. It doesn't prove Python is not suitable for the job, but there are tons of legacy elisp file that you have to translate manually(you can imagine what a huge work it will be).
头像
vfantasie
帖子: 9
注册时间: 2010-03-27 21:20

Re: 抱怨,准备入手vim或者emacs

#43

帖子 vfantasie » 2010-03-28 13:30

I used to be vim user since 7+ years ago
:em20 davyzhu大牛……膜拜
呃……我发现我还是对Emacs相当缺乏了解~见笑了
我上面对Emacs的见解大家就无视吧…… :em06
My Chinese input method crashed due to some applet issue
论坛回贴有一个“云输入法”的功能,相当不错的,应该只需要联网+浏览器JS支持就能用了,davyzhu试试吧
davyzhu
帖子: 109
注册时间: 2009-12-06 21:23

Re: 抱怨,准备入手vim或者emacs

#44

帖子 davyzhu » 2010-03-28 14:03

vfantasie 写了:
I used to be vim user since 7+ years ago
:em20 davyzhu大牛……膜拜
呃……我发现我还是对Emacs相当缺乏了解~见笑了
我上面对Emacs的见解大家就无视吧…… :em06
My Chinese input method crashed due to some applet issue
论坛回贴有一个“云输入法”的功能,相当不错的,应该只需要联网+浏览器JS支持就能用了,davyzhu试试吧
Thank you:) The cloud input method is good, but
1. sometimes too slow(don't response in 10 seconds),
2. don't support double input PINYIN(only full input is supported)

And I guess most people in this forum know a little English (at least from college)?
头像
sevk
帖子: 2060
注册时间: 2007-05-08 16:26
系统: arch
来自: 火星内核某分子内某原子核内
联系:

Re: 抱怨,准备入手vim或者emacs

#45

帖子 sevk » 2010-03-28 15:36

emacs 是整天开着他,不用关掉的.
vim 是用的时候开一下,用完关掉的.
我喜欢vim .
笔记本 :
F208S : gentoo
A460P i3G D6 : UBUNTU + WIN7
UN43D1 : UBUNTU + WIN7
1000人超级QQ群 LINUX + WIN : 31465544 或 18210387
回复