hazard
V2EX  ›  问与答

关于 VIM 的可视模式的一个小问题

  •  
  •   hazard · Apr 30, 2014 · 2289 views
    This topic created in 4417 days ago, the information mentioned may be changed or developed.
    在可视模式下,键入w和aw有何区别?看Learning vi/vim时想到的。。。
    1 replies    2014-04-30 14:44:41 +08:00
    ik0r
        1
    ik0r  
       Apr 30, 2014   ❤️ 1
    w是从当前位置选择到word end
    aw 是选择当前光标所在的整个word

    t_is is a question.

    如果光标在上面下划线处, 按w会从下划线选中到is前面的空格.
    按aw会选择从t_is单词的开头到is前面的空格.
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5315 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 09:15 · PVG 17:15 · LAX 02:15 · JFK 05:15
    ♥ Do have faith in what you're doing.