VSCodeVim/Vim

Support `targets.vim` plugin

开放

#601 创建于 2016年8月12日

 (12 条评论) (31 个反应) (0 位负责人)TypeScript (1,271 个派生)batch import
area/not-vim-corehelp wantedkind/featuresize/M

仓库指标

星标
 (12,664 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

One plugin that is very useful for my VIM flow is this one: https://github.com/wellle/targets.vim

It builds on the idea of the ci" command - where it jumps forward to find the nearest quotation, and changes inside, for other characters, like (), {}, [], etc.

It also supports argument text objects - which are handy for deleting and changing in function arguments. So cia would jump forward to an argument and change.

These motions and text objects are nice because they mean you can strike from a distance.

In terms of integration, it seems like it depends on whether the plugin story for this is implemented: https://github.com/VSCodeVim/Vim/issues/590

If that happens, we might want to look at making the text objects extensible to support these scenarios. Otherwise, we could potentially bake it in as a setting.

Note that ci" is already supported in VSCodeVim (and VIM out of the box), so potentially the work at least for those jump commands might not be too bad.

贡献者指南