with apologies for the tangential topic - I've been using sexp (plus sexp-mappings-for-normal-people) for editing Clojure and absolutely love that structured editing style. regrettably I do my money-oriented programming in Java, mostly writing fluent APIs. does anyone know an equivalent set of text objects etc. for Vim for C-syntax languages?
the only thing I'm aware of is argtextobj, which works for C-style function(arguments)
. what about "delete inner call" or "delete whole one-line statement"?
I use b
or (
(same thing) for parens
so you can do cib
to change all args
Also there’s this: https://github.com/wellle/targets.vim
but I haven’t used it
ah, now that looks like the kind of thing! using .
and ,
covers fluent APIs and complicated lists.
you can also use {
for blocks "
for strings - there are quite a few good text objects, and I'd expect a java mode to provide ones for java