哪些编辑器出自Emacs,Vim和JEdit支持多个同时的文本插入点? [英] Which editors out of Emacs, Vim and JEdit support multiple simultaneous text insertion points?

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

问题描述

背景: JEdit(以及其他一些文本编辑器)也支持一个名为多个同时文本插入点。 (至少这就是我在这里所说的)。



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



在现代文字编辑器使用的所有功能中,初步研究似乎表明,这是Emacs和Vim之间的一个功能不实际支持如果是正确的,这将是非常特别的,因为很难找到文本编辑器功能,至少没有进入这两个老派编辑的一个



问题:有没有人曾经在Emacs,Vim或两者中看到或实现了这个功能?如果是这样,请指出一个链接,脚本,参考或摘要,说明细节。



如果你知道另一种做同样(或类似的)事情的方法请让我知道。

解决方案

这样做的vim方法是。重复上次更改的命令。所以,例如,如果我改变一个指针到一个引用,我有一堆
obj-> func
我想要更改为
obj.func
那么我搜索obj->,做2cw将obj->更改为obj,然后执行nnn直到所有的实例都被更改为止。



可能并不像你所说的那样灵活,但是它的工作频繁,并且非常直观和快速。 p>

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.

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.

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.

If you know an alternate way to do the same (or similar) thing, please let me know.

解决方案

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和JEdit支持多个同时的文本插入点?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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