在多行上使用 vim 的 f 命令 [英] Using vim's f command over multiple lines

查看:34
本文介绍了在多行上使用 vim 的 f 命令的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有谁知道如何快速找到下一个出现的字符(如 f 命令)但多行?IE.快速跳转到文件中某个字符的下一个出现处?

Anyone knows how to quickly find the next occurrence of a character (like the f command) but multi-line? I.e. to quickly jump to the next occurrence of some character in a file?

推荐答案

这不就是 "/" 的作用吗?

Isn't that what "/" does?

如果您正在寻找下一个x",请在命令模式下执行/x.

If you're looking for the next "x" then do /x while in command mode.

然后你可以点击n"前进到下一个x,然后下一个x,等等

Then you can hit "n" to advance to the next x, and then the next x, etc.

有很多 vim 备忘单,其中包含各种提示.

There are lots of vim cheat sheets out there with all kinds of tips.

这篇关于在多行上使用 vim 的 f 命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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