Vim Plug todo
vim-surround
targets.vim
将 text object 做了扩展.
, . ; : + - = ~ _ * # / | \ & $
除此之外还有 argument 类型的文本对象 (小括号以及中括号内的), 使用 a 来表示.
如果当前正位于某个文本对象内, 但希望选中 下一个 同类型文档对象, 则可以使用 v i n ).
为了便于记忆, n 可以是 next text object 的简写.
txt
cursor position │ .......................
buffer line │ (This is example text) (with a pair of parentheses).
selection │ └───────── vin) ─────────┘如果当前正位于某个文本对象内, 但希望选中 上一个 同类型文档对象, 则可以使用 v i l ).
为了便于记忆, l 可以是 last text object 的简写.
txt
cursor position │ .............................
buffer line │ (This is example text) (with a pair of parentheses).
selection │ └─────── vil) ───────┘