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

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

    Text objects: http://vim.wikia.com/wiki/Creating_new_text_objects

    http://vimdoc.sourceforge.net/htmldoc/motion.html#text-objects

    0 讨论(0)
  • 2021-01-29 18:03

    v 35 j

    text added for 30 character minimum

    0 讨论(0)
  • 2021-01-29 18:06

    simple just press Shift v line number gg

    example: your current line to line 41 Just press Shift v 41 gg

    0 讨论(0)
  • 2021-01-29 18:07

    Shift+V n j or Shift+V n k

    This selects the current line and the next/previous n lines. I find it very useful.

    0 讨论(0)
提交回复
热议问题