Is there a way to emulate ReSharper's “extend selection” feature in Vim?

前端 未结 5 630
轮回少年
轮回少年 2021-02-09 04:32

ReSharper has a nice feature called \"extend selection\": by pressing CTRL+W (I think this is the default) repeatedly, you select more and more from your current ca

5条回答
  •  攒了一身酷
    2021-02-09 05:17

    If you're talking about Vim (and you should be :-), you can start marking text with the v command, then you have all the standard cursor movement commands (and, as you know, there are a lot of them) which will extend the selection, as well as moving the cursor.

    Then you just do whatever you want with the selected text.

    See here for the gory details.

提交回复
热议问题