(Emacs(和Vim))vs JEdit:哪些支持多个并发文本插入点? [英] (Emacs (and Vim)) vs JEdit: Which ones support multiple simultaneous text insertion points?

查看:149
本文介绍了(Emacs(和Vim))vs JEdit:哪些支持多个并发文本插入点?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

背景: JEdit(以及其他一些文字编辑器)支持多个同时文字插入点。 (至少这是我在这里叫它)。

Background: JEdit (and some other text editors as well) support a feature called Multiple simultaneous text insertion points. (at least that's what I'm calling it here).

要了解这是什么意思,看看链接。

To understand what this means, take a look at the link.

在现代文本编辑器中使用的所有功能中,最初的研究似乎表明这是Emacs和Vim两者的一个特征实际上不支持。如果正确,这将是非常特殊的,因为很难找到一个文本编辑器功能,至少这两个旧学校编辑器

Out of all the features in use in modern text editors, initial research seems to indicate that this is one feature that both Emacs and Vim do not actually support. If correct, this would be pretty exceptional since it's quite difficult to find a text editor feature that has not made its way into at least one of these two old-school editors.

问题:有没有人曾在Emacs,Vim或两者中看到或实现此功能?

Question: Has anyone ever seen or implemented this feature in either Emacs, Vim, or both? If so, please point me to a link, script, reference or summary that explains the details.

更新:。为了回应这个问题,投票,请注意我没有问是否该功能是需要。我问一个简单的是/否问题,是否已实现。我没有发明这个功能。我只是研究它。

Update: In response to the down-votes, please note I didn't ask whether the feature was "needed". I asked a simple yes/no question, whether it was implemented. I didn't invent the feature. I'm just researching it. I don't give a rats ~~~ who does or doesn't like it.

如果你知道一个替代的方法来做,那么我不会给老鼠~~~谁也不喜欢它。

If you know an alternate way to do the same (or similar) thing, that's fine, but please try to save the soap-boxing and advocacy for people who seek out that kind of fluffy subjective response on SO. If you can't answer an objective question without putting on your editor-religious-warrior costume, please kindly refrain from responding.

推荐答案

vim的做法是。命令,重复最后一次更改。所以,例如,如果我改变一个指针到一个引用,我有一堆
obj-> func
,我想改为
obj.func
然后我搜索obj->,执行2cw将obj->更改为obj。,然后执行nnn

The vim way to do this is the . command which repeats the last change. So, for instance, if I change a pointer to a reference and I have a bunch of obj->func that I want to change to obj.func then I search for obj->, do 2cw to change the obj-> to obj., then do n.n.n. until all the instances are changed.

可能不像你所说的那样灵活,但它的工作频率很高,而且直观和快速。

Perhaps not a flexible as what you're talking about, but it works frequently and is very intuitive and fast when it does.

这篇关于(Emacs(和Vim))vs JEdit:哪些支持多个并发文本插入点?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆