yingluck
V2EX  ›  Vim

请问如何在 Vim 命令模式下实现从光标位置处换行?

  •  
  •   yingluck · Jul 12, 2014 · 23232 views
    This topic created in 4326 days ago, the information mentioned may be changed or developed.
    比如:
    wqerqtyuiop
    光标位于 r
    之后变成
    wqer
    qtyuiop
    6 replies    2014-07-12 17:42:40 +08:00
    hzlez
        1
    hzlez  
       Jul 12, 2014   ❤️ 1
    a<Enter><ESC>

    你可以
    :nnoremap K a<CR><Esc>

    然后大写K可以帮你做这个。
    dorentus
        2
    dorentus  
       Jul 12, 2014
    https://www.google.com/search?q=vim+command+mode+break+line
    没啥特别的方法,都是绑自定义快捷键之类。
    goodxxx
        3
    goodxxx  
       Jul 12, 2014
    在q 字母处按 i键,然后ctrl-j
    tonyluj
        4
    tonyluj  
       Jul 12, 2014
    没有什么特别的方法:a + Enter + C-C
    话说vim中用C-C切换比用ESC好用
    C-V模式除外
    banbanchs
        5
    banbanchs  
       Jul 12, 2014
    插入状态下光标位于r后面然后按Ctrl-j
    kkxxxxxxx
        6
    kkxxxxxxx  
       Jul 12, 2014
    i前面插入,a后面追加
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2822 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 145ms · UTC 10:50 · PVG 18:50 · LAX 03:50 · JFK 06:50
    ♥ Do have faith in what you're doing.