Fork me on GitHub
#vim
<
2021-04-30
>
Braden Shepherdson13:04:03

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"?

grazfather14:04:42

I use b or ( (same thing) for parens

grazfather14:04:00

so you can do cib to change all args

grazfather14:04:14

but I haven’t used it

Braden Shepherdson15:04:48

ah, now that looks like the kind of thing! using . and , covers fluent APIs and complicated lists.

noisesmith20:04:16

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