Monday, March 12, 2018

Re: ci, (or something?)

On Saturday, March 10, 2018 at 7:02:15 PM UTC-5, Jason Felice wrote:
> Is there something that changes a function parameter in a C-style language, e.g. delimited by commas or parens?  I find myself wanting this frequently.
>
>
> Thanks,
> -Jason

Hey Jason,

I use the plugin "targets.vim" (https://github.com/wellle/targets.vim) for this exact purpose. When you install this plugin, you will have the option to "cia" or "caa" or "dia", etc. It also includes a number of other useful text objects you may have never considered (i.e., to change between two "/" chars in a path, use "ci/").

The project is also maintained. I submitted an issue not too long ago, and it was eventually fixed.

Best,
Jason Franklin

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments: