由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Linux版 - [原创] emacs和vim的区别。
相关主题
vim和emacs的区别你们谁写过长一点儿的python?
How to set a lisp variable in .emacs? / How to set Mac command key as meta key ?请教eclipse/netbeans v.s. vim/emacs,
Emacs 23.1很不错!!比较emacs flymake和vim codecheck
为了能更好的使用emacs, 我老毅然决定高龄自学Lisp。。。你们编程都用什么编辑器?
发点牢骚! 真的觉得日本人好牛~问几个关于linux系统的问题
Emacs跳到文件尾的速度很快,跳到文件头很慢我用vi是不是out了
弱问一个关于emacs的Ubuntu下python用什么编辑器
有没有vim给程序员的入门教程?主要用c.大拿能给介绍下vim和emacs到底有啥好处么?
相关话题的讨论汇总
话题: emacs话题: vim话题: do话题: vi话题: well
进入Linux版参与讨论
1 (共1页)
a*****i
发帖数: 4391
1
emacs is not written as an editor. Sure you can do all kind of fancy stuff
with it. IRC, email, newsgroup, shell emulator(eshell), semantic IDE (ecb,
semantic etc.), media junkbox, RSS reader, Video editor. It is hard to find
something that you can not do with emacs.
But it doesn't do editing very well, unless you install a crapload of
scripts, it is far less convenient to use as an editor. For example, you
need to write your own function to do what can be done in vim with one key '
%'.
vim, on
E*V
发帖数: 17544
2
can I use emacs to toast my bread :)

find
'
to
file

【在 a*****i 的大作中提到】
: emacs is not written as an editor. Sure you can do all kind of fancy stuff
: with it. IRC, email, newsgroup, shell emulator(eshell), semantic IDE (ecb,
: semantic etc.), media junkbox, RSS reader, Video editor. It is hard to find
: something that you can not do with emacs.
: But it doesn't do editing very well, unless you install a crapload of
: scripts, it is far less convenient to use as an editor. For example, you
: need to write your own function to do what can be done in vim with one key '
: %'.
: vim, on

a*****i
发帖数: 4391
3

Sure, check out breadcrumb. http://breadcrumbemacs.sourceforge.net/ :)

【在 E*V 的大作中提到】
: can I use emacs to toast my bread :)
:
: find
: '
: to
: file

wy
发帖数: 14511
4


find
'
to
file

【在 a*****i 的大作中提到】
: emacs is not written as an editor. Sure you can do all kind of fancy stuff
: with it. IRC, email, newsgroup, shell emulator(eshell), semantic IDE (ecb,
: semantic etc.), media junkbox, RSS reader, Video editor. It is hard to find
: something that you can not do with emacs.
: But it doesn't do editing very well, unless you install a crapload of
: scripts, it is far less convenient to use as an editor. For example, you
: need to write your own function to do what can be done in vim with one key '
: %'.
: vim, on

a*****i
发帖数: 4391
5

hmm?

【在 wy 的大作中提到】
: 扯
:
: find
: '
: to
: file

wy
发帖数: 14511
6
最后一句话啥意思?

【在 a*****i 的大作中提到】
:
: hmm?

N****w
发帖数: 21578
7
好办, emacs 里面引进 vim 的编辑功能就好了 hehe

find
'
to
file

【在 a*****i 的大作中提到】
: emacs is not written as an editor. Sure you can do all kind of fancy stuff
: with it. IRC, email, newsgroup, shell emulator(eshell), semantic IDE (ecb,
: semantic etc.), media junkbox, RSS reader, Video editor. It is hard to find
: something that you can not do with emacs.
: But it doesn't do editing very well, unless you install a crapload of
: scripts, it is far less convenient to use as an editor. For example, you
: need to write your own function to do what can be done in vim with one key '
: %'.
: vim, on

a*****i
发帖数: 4391
8

What IDE script you use for vim? I use trinity. And often I delete the
source buffer and I end up with a huge TAG_LIST window and the source window
is gone.

【在 wy 的大作中提到】
: 最后一句话啥意思?
wy
发帖数: 14511
9
I don't use any IDE script a.

window

【在 a*****i 的大作中提到】
:
: What IDE script you use for vim? I use trinity. And often I delete the
: source buffer and I end up with a huge TAG_LIST window and the source window
: is gone.

a*****i
发帖数: 4391
10
err I guess I need to map some keys to Toggle the Tag list and Nerd tree,
only turn them on when needed...

【在 wy 的大作中提到】
: I don't use any IDE script a.
:
: window

相关主题
Emacs跳到文件尾的速度很快,跳到文件头很慢你们谁写过长一点儿的python?
弱问一个关于emacs的请教eclipse/netbeans v.s. vim/emacs,
有没有vim给程序员的入门教程?主要用c.比较emacs flymake和vim codecheck
进入Linux版参与讨论
wy
发帖数: 14511
11
你以前不是用emacs么

【在 a*****i 的大作中提到】
: err I guess I need to map some keys to Toggle the Tag list and Nerd tree,
: only turn them on when needed...

A**********e
发帖数: 3102
12
俺来个简单版的:
emacs 是给非计算机专业人士使用的,vi 是给计算机专业人士设计的。
大家看看自己的专业和工作性质,就知道哪个更适合自己了。
比如说,有一些用 emacs 来写作的作家,大家听说过用 vi 来写作的么?

find
'
to
file

【在 a*****i 的大作中提到】
: emacs is not written as an editor. Sure you can do all kind of fancy stuff
: with it. IRC, email, newsgroup, shell emulator(eshell), semantic IDE (ecb,
: semantic etc.), media junkbox, RSS reader, Video editor. It is hard to find
: something that you can not do with emacs.
: But it doesn't do editing very well, unless you install a crapload of
: scripts, it is far less convenient to use as an editor. For example, you
: need to write your own function to do what can be done in vim with one key '
: %'.
: vim, on

B**z
发帖数: 38
13
这两个东西的区别就是北京人和上海人的区别。
b******y
发帖数: 9224
14
呵呵,忽悠啊
m***i
发帖数: 2480
15
What does "%" do in vim?

find
'
to
file

【在 a*****i 的大作中提到】
: emacs is not written as an editor. Sure you can do all kind of fancy stuff
: with it. IRC, email, newsgroup, shell emulator(eshell), semantic IDE (ecb,
: semantic etc.), media junkbox, RSS reader, Video editor. It is hard to find
: something that you can not do with emacs.
: But it doesn't do editing very well, unless you install a crapload of
: scripts, it is far less convenient to use as an editor. For example, you
: need to write your own function to do what can be done in vim with one key '
: %'.
: vim, on

s*********e
发帖数: 1051
16
爱用啥就用啥,哪来那么多废话。
两个我都能用来写程序。
l*****s
发帖数: 2109
17
反向搜寻光标下单词

【在 m***i 的大作中提到】
: What does "%" do in vim?
:
: find
: '
: to
: file

A**********e
发帖数: 3102
18
你这就是抬杠了。notepad 我还能用来写程序呢。
你不能否认,两者都精通的人不多 -- 这俩有互斥性。而其用户群的区别也是显而易见
的 -- 你见过很多人用 vi 写 matlab 的 codes 么?

【在 s*********e 的大作中提到】
: 爱用啥就用啥,哪来那么多废话。
: 两个我都能用来写程序。

E*V
发帖数: 17544
19
global?

【在 m***i 的大作中提到】
: What does "%" do in vim?
:
: find
: '
: to
: file

E*V
发帖数: 17544
20
that is # or *

【在 l*****s 的大作中提到】
: 反向搜寻光标下单词
相关主题
你们编程都用什么编辑器?Ubuntu下python用什么编辑器
问几个关于linux系统的问题大拿能给介绍下vim和emacs到底有啥好处么?
我用vi是不是out了其实vim轮和emacs轮都是低级阶段
进入Linux版参与讨论
E*V
发帖数: 17544
21
........me

【在 A**********e 的大作中提到】
: 你这就是抬杠了。notepad 我还能用来写程序呢。
: 你不能否认,两者都精通的人不多 -- 这俩有互斥性。而其用户群的区别也是显而易见
: 的 -- 你见过很多人用 vi 写 matlab 的 codes 么?

w***g
发帖数: 5958
22
me, 2. Matlab的图形界面太垃圾了.

【在 E*V 的大作中提到】
: ........me
m***i
发帖数: 2480
23

Isn't it ctrl-r in emacs?

【在 l*****s 的大作中提到】
: 反向搜寻光标下单词
A**********e
发帖数: 3102
24
向两位英雄致敬。嗯,哈哈。

【在 w***g 的大作中提到】
: me, 2. Matlab的图形界面太垃圾了.
w*******r
发帖数: 36
25
"%" takes the cursor to the corresponding open/close bracket

【在 E*V 的大作中提到】
: that is # or *
t*s
发帖数: 1504
26
我就用vim写matlab啊。。。

【在 A**********e 的大作中提到】
: 你这就是抬杠了。notepad 我还能用来写程序呢。
: 你不能否认,两者都精通的人不多 -- 这俩有互斥性。而其用户群的区别也是显而易见
: 的 -- 你见过很多人用 vi 写 matlab 的 codes 么?

a*****i
发帖数: 4391
27
A great tool that people who use vim should remember is :help.
Do a :help % or :help * and it can immediately tell you what they do.
Well, unless you don't have vim handy...
z****r
发帖数: 276
28
Personally, I believe that in the first place emacs is supposed for
everything which are around EDITTING and integrate them together, like irc,
email, ide, etc. then some other functions are added, like rss reader, emm,
etc. it shows that emacs has infinite extensive capabilities.

find
'
to
file

【在 a*****i 的大作中提到】
: emacs is not written as an editor. Sure you can do all kind of fancy stuff
: with it. IRC, email, newsgroup, shell emulator(eshell), semantic IDE (ecb,
: semantic etc.), media junkbox, RSS reader, Video editor. It is hard to find
: something that you can not do with emacs.
: But it doesn't do editing very well, unless you install a crapload of
: scripts, it is far less convenient to use as an editor. For example, you
: need to write your own function to do what can be done in vim with one key '
: %'.
: vim, on

a*****i
发帖数: 4391
29

,
,
Yes, only then it integrates well, but it doesn't do the primary job, which
is editing, well.

【在 z****r 的大作中提到】
: Personally, I believe that in the first place emacs is supposed for
: everything which are around EDITTING and integrate them together, like irc,
: email, ide, etc. then some other functions are added, like rss reader, emm,
: etc. it shows that emacs has infinite extensive capabilities.
:
: find
: '
: to
: file

n******t
发帖数: 4406
30
我觉得没啥互斥性啊。。
我两个都用。。
Latex之类的用emacs,编程用vi。
matlab?那还是用matlab自带的吧。
还有我觉得vi是无论如何要回的,没有emacs的机器到处都是,没有vi的
则基本上没有。

【在 A**********e 的大作中提到】
: 你这就是抬杠了。notepad 我还能用来写程序呢。
: 你不能否认,两者都精通的人不多 -- 这俩有互斥性。而其用户群的区别也是显而易见
: 的 -- 你见过很多人用 vi 写 matlab 的 codes 么?

相关主题
computer scientists 用vi/vim How to set a lisp variable in .emacs? / How to set Mac command key as meta key ?
下周跟Stallman吃饭,瓦咔咔Emacs 23.1很不错!!
vim和emacs的区别为了能更好的使用emacs, 我老毅然决定高龄自学Lisp。。。
进入Linux版参与讨论
w****g
发帖数: 597
31
两个editer软件都可用, 应该可以按需所取。

【在 n******t 的大作中提到】
: 我觉得没啥互斥性啊。。
: 我两个都用。。
: Latex之类的用emacs,编程用vi。
: matlab?那还是用matlab自带的吧。
: 还有我觉得vi是无论如何要回的,没有emacs的机器到处都是,没有vi的
: 则基本上没有。

A**********e
发帖数: 3102
32
谁说的?呵呵。说说在 editing 上 emacs 比 vim 差的地方?

irc
emm
which

【在 a*****i 的大作中提到】
:
: ,
: ,
: Yes, only then it integrates well, but it doesn't do the primary job, which
: is editing, well.

A**********e
发帖数: 3102
33
matlab 自己带的就是 emacs 模式的。
vi 的确是太重要了,不能不会,否则机器出问题了,/usr 不能 visit,就傻眼了。
但是你的手指真的能够没有困难地记住两套快捷键么?

易见

【在 n******t 的大作中提到】
: 我觉得没啥互斥性啊。。
: 我两个都用。。
: Latex之类的用emacs,编程用vi。
: matlab?那还是用matlab自带的吧。
: 还有我觉得vi是无论如何要回的,没有emacs的机器到处都是,没有vi的
: 则基本上没有。

z****r
发帖数: 276
34
Well, I still believe that emacs community is still keeping on the track, to
make editing more convenient and powerful. And I am very glad that they are
doing a great job.
BTW, I really enjoy that emacs brings me surprises sometimes, like
calculator mode, win mode, ...... This drives me in return to explore its
power. Very interesting. :-)
A**********e
发帖数: 3102
35
推荐 org-mode。做得真不错。

to
are

【在 z****r 的大作中提到】
: Well, I still believe that emacs community is still keeping on the track, to
: make editing more convenient and powerful. And I am very glad that they are
: doing a great job.
: BTW, I really enjoy that emacs brings me surprises sometimes, like
: calculator mode, win mode, ...... This drives me in return to explore its
: power. Very interesting. :-)

i***e
发帖数: 3219
36
I'm a veteran Emacs user. I think Emacs' calc is the coolest calculator
ever. But I don't know what win mode is. This once again shows 天外有天 in
the Emacs world!
A**********e
发帖数: 3102
37
我猜是 winner-mode ?

in
its

【在 i***e 的大作中提到】
: I'm a veteran Emacs user. I think Emacs' calc is the coolest calculator
: ever. But I don't know what win mode is. This once again shows 天外有天 in
: the Emacs world!

n******t
发帖数: 4406
38
没问题啊。。
但是emacs现在我已经用鼠标和方向键多了,为了是保护手。

【在 A**********e 的大作中提到】
: matlab 自己带的就是 emacs 模式的。
: vi 的确是太重要了,不能不会,否则机器出问题了,/usr 不能 visit,就傻眼了。
: 但是你的手指真的能够没有困难地记住两套快捷键么?
:
: 易见

A**********e
发帖数: 3102
39
我很烦 org-mode 大量使用方向键的,很不舒服。我觉得还成吧,尤其是现在用笔记本
比较多,键盘本来就小。

【在 n******t 的大作中提到】
: 没问题啊。。
: 但是emacs现在我已经用鼠标和方向键多了,为了是保护手。

h**********l
发帖数: 6342
40
还停留在vi

find
'
to
file

【在 a*****i 的大作中提到】
: emacs is not written as an editor. Sure you can do all kind of fancy stuff
: with it. IRC, email, newsgroup, shell emulator(eshell), semantic IDE (ecb,
: semantic etc.), media junkbox, RSS reader, Video editor. It is hard to find
: something that you can not do with emacs.
: But it doesn't do editing very well, unless you install a crapload of
: scripts, it is far less convenient to use as an editor. For example, you
: need to write your own function to do what can be done in vim with one key '
: %'.
: vim, on

相关主题
为了能更好的使用emacs, 我老毅然决定高龄自学Lisp。。。弱问一个关于emacs的
发点牢骚! 真的觉得日本人好牛~有没有vim给程序员的入门教程?主要用c.
Emacs跳到文件尾的速度很快,跳到文件头很慢你们谁写过长一点儿的python?
进入Linux版参与讨论
y*******g
发帖数: 6599
41
nano

【在 A**********e 的大作中提到】
: matlab 自己带的就是 emacs 模式的。
: vi 的确是太重要了,不能不会,否则机器出问题了,/usr 不能 visit,就傻眼了。
: 但是你的手指真的能够没有困难地记住两套快捷键么?
:
: 易见

A**********e
发帖数: 3102
42
您了一定是用 gentoo 的吧,哈哈。

【在 y*******g 的大作中提到】
: nano
l*****s
发帖数: 2109
43
%是匹配。刚才说错了我。
z**r
发帖数: 17771
44
是不是用ubuntu的就用gedit了

【在 A**********e 的大作中提到】
: 您了一定是用 gentoo 的吧,哈哈。
m*******3
发帖数: 226
45
你有emacs比较好的 教材吗?
我现在正在学这个,觉得要用熟练好难啊,
盼回复,谢谢
a*****i
发帖数: 4391
46

How do you do "%" ?

【在 A**********e 的大作中提到】
: 谁说的?呵呵。说说在 editing 上 emacs 比 vim 差的地方?
:
: irc
: emm
: which

a*****i
发帖数: 4391
47

XahLee's website is one of the best.
http://xahlee.org/emacs/emacs.html

【在 m*******3 的大作中提到】
: 你有emacs比较好的 教材吗?
: 我现在正在学这个,觉得要用熟练好难啊,
: 盼回复,谢谢

c****e
发帖数: 1453
48
发信人: ayanami (螃蟹@FROSTSHOCK PWNS YOU!!11!), 信区: Linux
标 题: Re: [原创] emacs和vim的区别。
发信站: BBS 未名空间站 (Mon Mar 16 14:18:17 2009)

How do you do "%" ?
(global-set-key "%" 'match-paren)
(defun match-paren (arg)
"Go to the matching paren if on a paren; otherwise insert %."
(interactive "p")
(cond ((looking-at "\\s\(") (forward-list 1) (backward-char 1))
((looking-at "\\s\)") (forward-char 1) (backward-list 1))
(t (self-insert-command (or arg 1)))))

【在 A**********e 的大作中提到】
: 谁说的?呵呵。说说在 editing 上 emacs 比 vim 差的地方?
:
: irc
: emm
: which

m****e
发帖数: 152
49
I like vim+latexsuite for latex editing.
Powerful and flexibly costumized.
A**********e
发帖数: 3102
50
我 vi 不熟哈,你是说找到上个匹配的左括号?这个肯定可以自己写,因为 emacs 里写
右括号时总会 jump 回左括号,把那个函数一改就成。不过这东西有用么?

【在 a*****i 的大作中提到】
:
: XahLee's website is one of the best.
: http://xahlee.org/emacs/emacs.html

相关主题
请教eclipse/netbeans v.s. vim/emacs,问几个关于linux系统的问题
比较emacs flymake和vim codecheck我用vi是不是out了
你们编程都用什么编辑器?Ubuntu下python用什么编辑器
进入Linux版参与讨论
A**********e
发帖数: 3102
51
初学时用 emacs 自带的那个 tour。后面就靠看 manual 了 -- 先把 info mode 搞熟了
,然后用 info mode 看自带的帮助。
基本设置要看别人怎么搞的。尽量不要把东西设在 .emacs 里,每个都有自己专门的配
置文件。

【在 m*******3 的大作中提到】
: 你有emacs比较好的 教材吗?
: 我现在正在学这个,觉得要用熟练好难啊,
: 盼回复,谢谢

m*******3
发帖数: 226
52
谢谢ayanami和你的指点。

熟了

【在 A**********e 的大作中提到】
: 初学时用 emacs 自带的那个 tour。后面就靠看 manual 了 -- 先把 info mode 搞熟了
: ,然后用 info mode 看自带的帮助。
: 基本设置要看别人怎么搞的。尽量不要把东西设在 .emacs 里,每个都有自己专门的配
: 置文件。

a*****i
发帖数: 4391
53

hehe, the problem with this is:
1: % does not only match parenthesis, it also matches square brackets ([])
and curly brackets. ({}), as well as
* To jump to start or end of a C-style comment: /* */.
* To jump to a matching C/C++ preprocessor conditional: #if, #ifdef, #
else, #elif, #endif.
* To jump between appropriate keywords, if supported by the ftplugin
file, for example, between begin and end in a Pascal program.
2: well, now you solved the problem with [] and {}, tell me h

【在 c****e 的大作中提到】
: 发信人: ayanami (螃蟹@FROSTSHOCK PWNS YOU!!11!), 信区: Linux
: 标 题: Re: [原创] emacs和vim的区别。
: 发信站: BBS 未名空间站 (Mon Mar 16 14:18:17 2009)
:
: How do you do "%" ?
: (global-set-key "%" 'match-paren)
: (defun match-paren (arg)
: "Go to the matching paren if on a paren; otherwise insert %."
: (interactive "p")
: (cond ((looking-at "\\s\(") (forward-list 1) (backward-char 1))

s***n
发帖数: 57
54
in emacs, there is "Ctrl + Alt + F" or "Ctrl + Alt + B" is doing sth similar
to %.

【在 a*****i 的大作中提到】
:
: hehe, the problem with this is:
: 1: % does not only match parenthesis, it also matches square brackets ([])
: and curly brackets. ({}), as well as
: * To jump to start or end of a C-style comment: /* */.
: * To jump to a matching C/C++ preprocessor conditional: #if, #ifdef, #
: else, #elif, #endif.
: * To jump between appropriate keywords, if supported by the ftplugin
: file, for example, between begin and end in a Pascal program.
: 2: well, now you solved the problem with [] and {}, tell me h

r****t
发帖数: 10904
55
不知道怎么在 emacs 上面做 vim 的 # 和 * ?

【在 A**********e 的大作中提到】
: 谁说的?呵呵。说说在 editing 上 emacs 比 vim 差的地方?
:
: irc
: emm
: which

A**********e
发帖数: 3102
56
这俩干啥用的?

【在 r****t 的大作中提到】
: 不知道怎么在 emacs 上面做 vim 的 # 和 * ?
E*V
发帖数: 17544
57
你打开vim, 吧光标一动到一个单词上,
案*
就知道了

【在 A**********e 的大作中提到】
: 这俩干啥用的?
A**********e
发帖数: 3102
58
这个功能不错啊,呵呵。不过在 emacs 里模拟也是很容易的吧 。。。 BTW,emacs 里
本来就有 vi-mode。
关键就是,emacs lisp 本身是一种开发语言,缺啥可以写啥,之所以还没有被加进 pa
ckage 里,可能是需要这个功能的用户还不多,或者有别的方便的办法实现这个功能。

【在 E*V 的大作中提到】
: 你打开vim, 吧光标一动到一个单词上,
: 案*
: 就知道了

m******t
发帖数: 2416
59
LOL. Considering the topic, I would like to congratulate
you guys for managing to stay civilized after 3 pages.
wy
发帖数: 14511
60
zan, 这两天学到不少trick

【在 E*V 的大作中提到】
: 你打开vim, 吧光标一动到一个单词上,
: 案*
: 就知道了

相关主题
大拿能给介绍下vim和emacs到底有啥好处么?下周跟Stallman吃饭,瓦咔咔
其实vim轮和emacs轮都是低级阶段vim和emacs的区别
computer scientists 用vi/vim How to set a lisp variable in .emacs? / How to set Mac command key as meta key ?
进入Linux版参与讨论
wy
发帖数: 14511
61
qie,不要挑拨离间

【在 m******t 的大作中提到】
: LOL. Considering the topic, I would like to congratulate
: you guys for managing to stay civilized after 3 pages.

c*******o
发帖数: 1722
62
有阿,我。

【在 A**********e 的大作中提到】
: 你这就是抬杠了。notepad 我还能用来写程序呢。
: 你不能否认,两者都精通的人不多 -- 这俩有互斥性。而其用户群的区别也是显而易见
: 的 -- 你见过很多人用 vi 写 matlab 的 codes 么?

c*******o
发帖数: 1722
63
写大量的structured的东西,vi还是很方便地。

【在 A**********e 的大作中提到】
: 向两位英雄致敬。嗯,哈哈。
r****t
发帖数: 10904
64
很多人不知道这个,现在我都不觉得惊讶了。vim 启蒙第一章就应该是 * 和 #.

【在 wy 的大作中提到】
: zan, 这两天学到不少trick
r****t
发帖数: 10904
65
我学了一段 Emacs, 就是因为贪恋这个功能,又不知道怎么在 emacs 下面搞,所
以放弃了。

pa

【在 A**********e 的大作中提到】
: 这个功能不错啊,呵呵。不过在 emacs 里模拟也是很容易的吧 。。。 BTW,emacs 里
: 本来就有 vi-mode。
: 关键就是,emacs lisp 本身是一种开发语言,缺啥可以写啥,之所以还没有被加进 pa
: ckage 里,可能是需要这个功能的用户还不多,或者有别的方便的办法实现这个功能。

F*****e
发帖数: 139
66
It really doesn't matter that much whether you use vi or emacs. What matters
is to use one editor well.
wy
发帖数: 14511
67
这个功能对我没太大用处阿。%狂游泳

【在 r****t 的大作中提到】
: 很多人不知道这个,现在我都不觉得惊讶了。vim 启蒙第一章就应该是 * 和 #.
r****t
发帖数: 10904
68
找东西一个键搞定很有用,主要好处是省眼神省击键,都不带用眼睛找的。% 我用的倒
是少,括号用的尽量少。

【在 wy 的大作中提到】
: 这个功能对我没太大用处阿。%狂游泳
wy
发帖数: 14511
69
编程序%游泳阿。一键就在block之间跳来跳去。不仅仅是work on (

【在 r****t 的大作中提到】
: 找东西一个键搞定很有用,主要好处是省眼神省击键,都不带用眼睛找的。% 我用的倒
: 是少,括号用的尽量少。

r****t
发帖数: 10904
70
只有 c++ 用这个多, ruby 和 python 好像没法用 % 来找 block, 所以。。。 lisp 的人用
emacs 了, java 的人用 eclipse 了。。

【在 wy 的大作中提到】
: 编程序%游泳阿。一键就在block之间跳来跳去。不仅仅是work on (
相关主题
How to set a lisp variable in .emacs? / How to set Mac command key as meta key ?发点牢骚! 真的觉得日本人好牛~
Emacs 23.1很不错!!Emacs跳到文件尾的速度很快,跳到文件头很慢
为了能更好的使用emacs, 我老毅然决定高龄自学Lisp。。。弱问一个关于emacs的
进入Linux版参与讨论
wy
发帖数: 14511
71
ruby肯定可以的

lisp 的人用

【在 r****t 的大作中提到】
: 只有 c++ 用这个多, ruby 和 python 好像没法用 % 来找 block, 所以。。。 lisp 的人用
: emacs 了, java 的人用 eclipse 了。。

t****t
发帖数: 6806
72
which proves exactly what aya said, you have to write a script for that.
PS: i don't know or use emacs, don't throw bricks at me. i use vi pretty
well tho.:)

【在 c****e 的大作中提到】
: 发信人: ayanami (螃蟹@FROSTSHOCK PWNS YOU!!11!), 信区: Linux
: 标 题: Re: [原创] emacs和vim的区别。
: 发信站: BBS 未名空间站 (Mon Mar 16 14:18:17 2009)
:
: How do you do "%" ?
: (global-set-key "%" 'match-paren)
: (defun match-paren (arg)
: "Go to the matching paren if on a paren; otherwise insert %."
: (interactive "p")
: (cond ((looking-at "\\s\(") (forward-list 1) (backward-char 1))

a*****i
发帖数: 4391
73
% not only works for parenthesis, but also a lot of other block defining
symbols/phrases as well.
And there is also g% that will expand its functionality too. :)

lisp 的人用

【在 r****t 的大作中提到】
: 只有 c++ 用这个多, ruby 和 python 好像没法用 % 来找 block, 所以。。。 lisp 的人用
: emacs 了, java 的人用 eclipse 了。。

w********e
发帖数: 557
74
个人浅见,vi快速简洁,emacs比较fancy,适合编程和觉得vi两个mode confusing的人
用。
D*********s
发帖数: 555
75
是括号匹配吧

【在 l*****s 的大作中提到】
: 反向搜寻光标下单词
r****t
发帖数: 10904
76
其实时间一久你就会发现,最大区别是一个傍了 lisp, 一个傍了 python.

find
'
to
file

【在 a*****i 的大作中提到】
: emacs is not written as an editor. Sure you can do all kind of fancy stuff
: with it. IRC, email, newsgroup, shell emulator(eshell), semantic IDE (ecb,
: semantic etc.), media junkbox, RSS reader, Video editor. It is hard to find
: something that you can not do with emacs.
: But it doesn't do editing very well, unless you install a crapload of
: scripts, it is far less convenient to use as an editor. For example, you
: need to write your own function to do what can be done in vim with one key '
: %'.
: vim, on

N****w
发帖数: 21578
77
vi 出道的时候 python 还一根毛都没有呢

【在 r****t 的大作中提到】
: 其实时间一久你就会发现,最大区别是一个傍了 lisp, 一个傍了 python.
:
: find
: '
: to
: file

E*V
发帖数: 17544
78
ubuntu的python怎么只有2.5?
我觉得perl啊,python啊,ruby这些都是正经语言。就是当个工具偶尔用一下。。。

【在 N****w 的大作中提到】
: vi 出道的时候 python 还一根毛都没有呢
wy
发帖数: 14511
79
你得把python, ruby和perl分开。从OO角度而言,
Ruby是比Java更纯粹的一门OO语言。
比如说,ruby你可以说:1.next
或者1.month.from_now. Java是不可能的,因为1在
java里面不是对象。
Perl虽然脏点,好歹也是曾经立过功的。以前还多网站后面
都是perl

【在 E*V 的大作中提到】
: ubuntu的python怎么只有2.5?
: 我觉得perl啊,python啊,ruby这些都是正经语言。就是当个工具偶尔用一下。。。

N****w
发帖数: 21578
80
那 python 就是 gay
流行只是因为比 perl 长得好看

【在 wy 的大作中提到】
: 你得把python, ruby和perl分开。从OO角度而言,
: Ruby是比Java更纯粹的一门OO语言。
: 比如说,ruby你可以说:1.next
: 或者1.month.from_now. Java是不可能的,因为1在
: java里面不是对象。
: Perl虽然脏点,好歹也是曾经立过功的。以前还多网站后面
: 都是perl

相关主题
有没有vim给程序员的入门教程?主要用c.比较emacs flymake和vim codecheck
你们谁写过长一点儿的python?你们编程都用什么编辑器?
请教eclipse/netbeans v.s. vim/emacs,问几个关于linux系统的问题
进入Linux版参与讨论
E*V
发帖数: 17544
81
perl那些简化写法太头疼了,我看了几遍还是放弃了,
就用python了

【在 N****w 的大作中提到】
: 那 python 就是 gay
: 流行只是因为比 perl 长得好看

N**D
发帖数: 10322
82
eclopse 没有好的vi plugin, 很不栓

lisp 的人用

【在 r****t 的大作中提到】
: 只有 c++ 用这个多, ruby 和 python 好像没法用 % 来找 block, 所以。。。 lisp 的人用
: emacs 了, java 的人用 eclipse 了。。

l*****s
发帖数: 2109
83
那个很简陋,找找vi的感觉而已。

【在 N**D 的大作中提到】
: eclopse 没有好的vi plugin, 很不栓
:
: lisp 的人用

L***n
发帖数: 6727
84
太有用啦,当你写一大堆括号头都晕了的时候...

里写

【在 A**********e 的大作中提到】
: 我 vi 不熟哈,你是说找到上个匹配的左括号?这个肯定可以自己写,因为 emacs 里写
: 右括号时总会 jump 回左括号,把那个函数一改就成。不过这东西有用么?

a*****i
发帖数: 4391
85

hmm, vim's native language is called vimscript.
Sure it has python/perl binding though.

【在 r****t 的大作中提到】
: 其实时间一久你就会发现,最大区别是一个傍了 lisp, 一个傍了 python.
:
: find
: '
: to
: file

L***n
发帖数: 6727
86
你也写Lisp/Scheme/...?

【在 wy 的大作中提到】
: 这个功能对我没太大用处阿。%狂游泳
m******t
发帖数: 2416
87

I had to try real hard not to imagine what a hairy python
would look like...

【在 N****w 的大作中提到】
: vi 出道的时候 python 还一根毛都没有呢
y*******g
发帖数: 6599
88
apt-get install python-2.6 python-3.0

【在 E*V 的大作中提到】
: ubuntu的python怎么只有2.5?
: 我觉得perl啊,python啊,ruby这些都是正经语言。就是当个工具偶尔用一下。。。

E*V
发帖数: 17544
89
多谢,我还纳闷呢,怎么会这么落后于时代

【在 y*******g 的大作中提到】
: apt-get install python-2.6 python-3.0
r****t
发帖数: 10904
90
vimscript is being replaced by python, at least that's the community vote.
Check vim8 dev.

【在 a*****i 的大作中提到】
:
: hmm, vim's native language is called vimscript.
: Sure it has python/perl binding though.

相关主题
我用vi是不是out了其实vim轮和emacs轮都是低级阶段
Ubuntu下python用什么编辑器computer scientists 用vi/vim
大拿能给介绍下vim和emacs到底有啥好处么?下周跟Stallman吃饭,瓦咔咔
进入Linux版参与讨论
E*V
发帖数: 17544
91
哦,真的啊
这个为什么要民主?是那个谁一个人的啊。
不过我喜欢这个主意

【在 r****t 的大作中提到】
: vimscript is being replaced by python, at least that's the community vote.
: Check vim8 dev.

r****t
发帖数: 10904
92
老黄历不 count 的

【在 N****w 的大作中提到】
: vi 出道的时候 python 还一根毛都没有呢
wy
发帖数: 14511
93
no, ruby. wheich has lots of do end

【在 L***n 的大作中提到】
: 你也写Lisp/Scheme/...?
a*****i
发帖数: 4391
94

Nice! Finally there is the incentive to practice python. :)

【在 r****t 的大作中提到】
: vimscript is being replaced by python, at least that's the community vote.
: Check vim8 dev.

n******t
发帖数: 4406
95
太有病了。。

【在 r****t 的大作中提到】
: vimscript is being replaced by python, at least that's the community vote.
: Check vim8 dev.

m******t
发帖数: 2416
96

vim script isn't going to be *replaced*. There are simply too
many useful plugins to rewrite them all in python.

【在 n******t 的大作中提到】
: 太有病了。。
wy
发帖数: 14511
97
不至于吧,至少应该backward兼容一下阿

【在 m******t 的大作中提到】
:
: vim script isn't going to be *replaced*. There are simply too
: many useful plugins to rewrite them all in python.

1 (共1页)
进入Linux版参与讨论
相关主题
大拿能给介绍下vim和emacs到底有啥好处么?发点牢骚! 真的觉得日本人好牛~
其实vim轮和emacs轮都是低级阶段Emacs跳到文件尾的速度很快,跳到文件头很慢
computer scientists 用vi/vim弱问一个关于emacs的
下周跟Stallman吃饭,瓦咔咔有没有vim给程序员的入门教程?主要用c.
vim和emacs的区别你们谁写过长一点儿的python?
How to set a lisp variable in .emacs? / How to set Mac command key as meta key ?请教eclipse/netbeans v.s. vim/emacs,
Emacs 23.1很不错!!比较emacs flymake和vim codecheck
为了能更好的使用emacs, 我老毅然决定高龄自学Lisp。。。你们编程都用什么编辑器?
相关话题的讨论汇总
话题: emacs话题: vim话题: do话题: vi话题: well