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

前端 未结 16 1969
面向向阳花
面向向阳花 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:41

    You can press vi} to select the block surrounded with {} brackets where your cursor is currently located.

    It doesn't really matter where you are inside that block (just make sure you are in the outermost one). Also you can change { to anything that has a pair like ) or ].

提交回复
热议问题