加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > 安全 > 正文

vim – 大写与小写字运动命令

发布时间:2020-12-15 18:26:28 所属栏目:安全 来源:网络整理
导读:参见英文答案 Vim: word vs WORD4个 W,E,B和w,e和b之间有什么区别吗? 游戏vim adventures让你拿起一个大写字母B,以便在感叹号上跳过一块石头,即: Remember: wordsXarenot WORDSX! 两个’X’分别代表宝箱和摇滚.为了跳过岩石,必须使用大写B而不是小写b.然后
参见英文答案 > Vim: word vs WORD4个
W,E,B和w,e和b之间有什么区别吗?

游戏vim adventures让你拿起一个大写字母B,以便在感叹号上跳过一块石头,即:

Remember: 
wordsXare
not WORDSX!

两个’X’分别代表宝箱和摇滚.为了跳过岩石,必须使用大写B而不是小写b.然后在usr_03.txt第03.1节中,它讨论了大写字运动命令.

   It is also possible to move by white-space separated WORDs.  This is not a
word in the normal sense,that's why the uppercase is used.  The commands for
moving by WORDs are also uppercase,as this figure shows:

           ge      b      w             e
           <-     <-   --->                   --->
    This is-a line,with special/separated/words (and some more). ~
       <----- <-----   -------------------->          ----->
         gE      B           W           E

With this mix of lowercase and uppercase commands,you can quickly move
forward and backward through a paragraph.

但当我执行:help W命令时,它给了我:

4. Word motions                        word-motions

   or                  <S-Right> w
w           [count] words forward.  |exclusive| motion.

   or                  <C-Right> W
W           [count] WORDS forward.  |exclusive| motion.

似乎没有任何区别.我正在使用Vim 7.4.

这基本上归结为vi认为是“单词”的内容.

这是一段文字,但使用大写的W,B等进行导航:

这是使用小写w,b等导航的相同文本:

基本上’WORD’被空格包围,而’word’可以包围并包含某些字符,如 – 或’等.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读