Vim: faster way to select blocks of text in visual mode

前端 未结 16 2315
面向向阳花
面向向阳花 2021-01-29 17:12

I have been using vim for quite some time and am aware that selecting blocks of text in visual mode is as simple as SHIFT+V and moving the arrow key up or

16条回答
  •  情话喂你
    2021-01-29 17:57

    v%

    will select the whole block.

    Play with also:

    v}, vp, vs, etc.

    See help:

    :help text-objects

    which lists the different ways to select letters, words, sentences, paragraphs, blocks, and so on.

提交回复
热议问题