我应该如何使用vim Visual模式? [英] What should I use vim Visual mode for?

查看:366
本文介绍了我应该如何使用vim Visual模式?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经使用vim两年了,尽管我学到了很多节省时间的快捷方式,但是我从未使用过可视模式,

I have been using vim for a couple of years now, and though I have learnt a lot of time saving shortcuts, but I have never used the Visual mode, which is supposed to be all powerful :

...可视块模式(用于编辑列)是许多编辑器所缺少的,但是我离不开它.我只是用这种方式使工作人员感到震惊和敬畏,在一些按键中进行了一些编辑,否则某些人本来会花十分钟手动完成.

我想了解为什么以及何时应该使用可视模式.

I want to understand why and when should I be using Visual mode.

有人可以给我举个例子吗?在几个按键上进行一些编辑,否则有人会花十分钟进行手动操作?"

Can someone give me an example of "making some edit in a few keypresses that someone would've otherwise spent ten minutes doing manually"?

推荐答案

如果看到 CTRL-C CTRL-V 并识别出它的作用,则应该使用视觉模式.

If you see CTRL-CCTRL-V and recognise what it does, you should use visual mode.

如果像我一样,您看到 A : esc 0 d f : $ p $ x 编辑命令,不要打扰:-)

If, like me, you see A:esc0df:$p$x as an edit command, don't bother :-)

这篇关于我应该如何使用vim Visual模式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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