vim

For discussion on all things (neo)vim.
2021-04-30T13:52:03.092600Z

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

grazfather 2021-04-30T14:25:42.093Z

I use b or ( (same thing) for parens

grazfather 2021-04-30T14:26:00.093400Z

so you can do cib to change all args

grazfather 2021-04-30T14:27:07.093800Z

Also there’s this: https://github.com/wellle/targets.vim

grazfather 2021-04-30T14:27:14.094100Z

but I haven’t used it

2021-04-30T15:24:48.094800Z

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

2021-04-30T20:31:16.095600Z

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