小弟的上篇文章 - 你應該擴充的 text obejct [1],裡頭所介紹的 target.vim
只是蜻蜓點水。
target.vim 強的不只是更細膩而已,甚至提供了 seeking 機制 -
也就是當目標 text object 不再游標底下,仍然可以使用 operator 對目標
text object 動作,Exploring Vim Plugins: Improve and Extend Your Text
Objects With targets.vim[2] 更詳細的介紹了 target.vim 使用方式以及經髓,
分享給大家
註: [2] 文中提到 i( 不支援 seeking 機制,但現已支援
[1]: https://reurl.cc/Ld6A23
[2]: https://reurl.cc/0OZ1aA