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
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 118.167.73.202 (臺灣)
※ 文章網址: https://www.ptt.cc/bbs/Editor/M.1600902630.A.4A6.html
※ 編輯: as23041248 (118.167.73.202 臺灣), 09/24/2020 07:13:03
小弟的上篇文章 - 你應該擴充的 text obejct [1],裡頭所介紹的 target.vim
只是蜻蜓點水。
target.vim 強的不只是更細膩而已,甚至提供了 seeking 機制 -
也就是當目標 text object 不再游標底下,仍然可以使用 operator 對目標
text object 動作,