为什么要“词”?命令不适用于 VI 编辑器
我刚刚阅读了一篇关于 VI 编辑器中使用的不同技巧的文章,我读了一个技巧,
ci" -> Cut everything inside "" string and start insert mode
但当我尝试时,这对我不起作用,
main()
{
int a[]="amit singh tomar";
}
:ci""
这就是我的做法。
但是用“”写的文本不会被删除。请告诉我我做错了吗还是什么?
I was just reading one of the post here on SO regarding different tricks used in VI editor ,there i read one trick
ci" -> Cut everything inside "" string and start insert mode
but when i tried this is not working for me
main()
{
int a[]="amit singh tomar";
}
:ci""
this is how am doing it.
But text written in "" is not getting deleted.Please let me know am i doing it wrong or what??
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您不得输入
:ci""
。它的工作原理如下:确保您处于正常模式(按 ESC),然后输入
ci"
- 从字面上看:首先是c
,然后是i,然后<代码>“。
You must not type
:ci""
. It works like this:Make sure you are in normal mode (press ESC), and then type
ci"
- literally: first ac
, theni
and then"
.当光标位于字符串上并且处于正常模式(即不是插入模式,也不是命令模式)时,只需尝试键入
ci"
,不带起始:
。While your cursor is on the string, and you are in normal mode (i.e not in insertion mode, nor in command mode), just try typing
ci"
, without the starting:
.它在正常模式下工作。尝试在开头不加冒号。
It works in normal mode. Try without the colon at the beginning.