4

Is there a plugin with specific C++ motions? Like

vif - visual inside function.

That could be very useful for some macros etc.

P4C
  • 507
  • 5
  • 10

1 Answers1

3

Regarding the precise vif, I did post link + explanation on how to achieve this correctly (this is unfortunately not a trivial task) from vim on vi.SE.

Regarding the other possible motions, well there are general plugins to select parameters (I have this within lh-cpp, and I'm aware of one another solution at least), there are other plugins that help to select words within camelCase or snake_case identifiers, but they are not C++ specific.

What else are you specifically looking for?

Community
  • 1
  • 1
Luc Hermitte
  • 31,979
  • 7
  • 69
  • 83
  • That's actually the answer I was looking for ;-) I've been just thinking of an operation which would be much easier to me if I would have such operators. – P4C Jul 31 '16 at 21:43
  • 1
    If you need advanced things, the generic lh-dev, and the dedicated lh-cpp offer a few things through a very poorly documented API. – Luc Hermitte Aug 01 '16 at 09:48