跳到下一个空白处 [英] Jump to next white space

查看:42
本文介绍了跳到下一个空白处的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

不是使用 w 跳转到下一个单词的开头或使用 e 跳转到下一个单词的末尾,我想要一个跳转的快捷方式到单词之间的下一个空格.

Instead of using w to jump to the beginning of the next word or using e to jump to the end of the next word I want to have a shortcut which jumps to the next whitespace between words.

推荐答案

  • 先使用 f,然后使用 space.参见 :help f:help t.
  • 如果您还想匹配制表符,也可以使用 /[[:space:]]/\s.
  • 否则 El 会这样做(大写 e 和小写 L).
    • Use f and then space. See :help f and :help t for that.
    • Alternatively use /[[:space:]] or /\s if you want to also match tab.
    • otherwise El will do it (capital e and lowercase L).
    • 遵循被拒绝的建议编辑,这里是如何向后进行(跳转到上一个空间):

      Following a suggested edit that was rejected, here is how to do it backwards (jump to previous space):

      • 先使用 F,然后使用 space.参见 :help F:help T.
      • 如果您还想匹配制表符,也可以使用 ?[[:space:]]?\s.
      • 否则 Bh 会这样做(大写 b 和小写 h).
      • Use F and then space. See :help F and :help T for that.
      • Alternatively use ?[[:space:]] or ?\s if you want to also match tab.
      • otherwise Bh will do it (capital b and lowercase h).

      这篇关于跳到下一个空白处的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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