This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-04-30
Channels
- # asami (10)
- # babashka (14)
- # beginners (71)
- # calva (56)
- # cider (8)
- # cljs-dev (3)
- # clojure (111)
- # clojure-australia (1)
- # clojure-europe (19)
- # clojure-nl (4)
- # clojure-uk (147)
- # clojurescript (4)
- # cursive (8)
- # datalog (1)
- # datomic (19)
- # emacs (4)
- # graalvm (32)
- # helix (14)
- # jackdaw (7)
- # jobs-discuss (10)
- # juxt (4)
- # lsp (3)
- # malli (47)
- # meander (6)
- # off-topic (29)
- # portal (6)
- # re-frame (1)
- # react (3)
- # reitit (24)
- # releases (1)
- # remote-jobs (4)
- # reveal (33)
- # rewrite-clj (3)
- # shadow-cljs (5)
- # sql (10)
- # tools-deps (4)
- # vim (7)
- # xtdb (151)
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