为什么要“词”?命令不适用于 VI 编辑器

发布于 2024-12-19 05:58:35 字数 289 浏览 6 评论 0原文

我刚刚阅读了一篇关于 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

深海少女心 2024-12-26 05:58:35

您不得输入 :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 a c, then i and then ".

复古式 2024-12-26 05:58:35

当光标位于字符串上并且处于正常模式(即不是插入模式,也不是命令模式)时,只需尝试键入 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 :.

三生殊途 2024-12-26 05:58:35

它在正常模式下工作。尝试在开头不加冒号。

It works in normal mode. Try without the colon at the beginning.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文