question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support `targets.vim` plugin

See original GitHub issue

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.

Issue Analytics

  • State:open
  • Created 7 years ago
  • Reactions:31
  • Comments:12 (7 by maintainers)

github_iconTop GitHub Comments

11reactions
elazarcohcommented, Aug 24, 2021

I just made a PR #7025 for the quotes text object of targets.vim. Will gladly take a shot at implementing the cin( etc. as well, if @Austin-Scott feels it’s not likely to happen any time soon.

9reactions
Austin-Scottcommented, Jul 11, 2020

Inspired by the recent addition of argument text objects #4653 I’m currently taking a shot at implementing the in (“inner next” such as cin(), an (“around next” such as can(), il (“inner last” such as cil(), and al (“around last” such as cal() commands from this plugin.

Read more comments on GitHub >

github_iconTop Results From Across the Web

wellle/targets.vim: Vim plugin that provides additional ... - GitHub
Targets.vim is a Vim plugin that adds various text objects to give you more targets to operate on. It expands on the idea...
Read more >
Improve and Extend Your Text Objects With targets.vim
Targets.vim is one of those plugins that truly enhances the way you work by supercharging one of the most fundamental Vim features: text ......
Read more >
targets.vim adds support for argument text objects (more info ...
Six months after the initial release, I just finished support for argument text objects. It offers the same features as other text objects...
Read more >
Support targets.vim plugin functionality : VIM-1659 - YouTrack
Support targets.vim plugin functionality. 1. Duplicates 1. Duplicates 1 issue (1 unresolved). https://github.com/wellle/targets.vim.
Read more >
Vim Targets: Work on Distant Text Objects with Fewer ...
If you search about Vim Targets, there are only a handful of resources. However, this plugin could drastically improve your workflow by ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found