Vim: How to insert in visual block mode?

前端 未结 4 1146
离开以前
离开以前 2020-12-12 11:58

How can you insert when you are in visual block mode (by pressing ctrl-V) in Vim?

4条回答
  •  天涯浪人
    2020-12-12 12:40

    Try this

    After selecting a block of text, press Shift+i or capital I.

    Lowercase i will not work.

    Then type the things you want and finally to apply it to all lines, press Esc twice.




    If this doesn't work...

    Check if you have +visualextra enabled in your version of Vim.

    You can do this by typing in :ver and scrolling through the list of features. (You might want to copy and paste it into a buffer and do incremental search because the format is odd.)

    Enabling it is outside the scope of this question but I'm sure you can find it somewhere.

提交回复
热议问题