This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-12-29
Channels
- # babashka (99)
- # beginners (47)
- # calva (28)
- # cider (5)
- # clj-kondo (5)
- # clojure (2)
- # clojure-europe (11)
- # clojure-gamedev (1)
- # clojure-norway (5)
- # clojurescript (11)
- # clr (82)
- # conjure (13)
- # cursive (3)
- # datahike (1)
- # datomic (28)
- # emacs (11)
- # fulcro (43)
- # honeysql (10)
- # interop (17)
- # keechma (3)
- # pathom (27)
- # re-frame (1)
- # reagent (3)
- # reitit (18)
- # releases (1)
- # shadow-cljs (81)
- # vim (5)
- # xtdb (3)
I’m looking for a convenient way to move across sibling forms. Consider the following code (where |
is the cursor position):
(comment
(|form1 abc
def
ghi
jkl)
(form2 foo bar)
(form3 baz zaz))
I want to move to the beginning of form2
and from then to the beginning of form3
without having to repeat j
. I looked up vim-sexp and it seems like none of the motions offered by it cover this particular case.
Does anyone have a good solution for this?✅ 3
Using vim-sexp-for-regular-humans or whatever that tpope plugin is called, i would use “(“ to move up to the surrounding paren, then “W” to move to the next-by-current-list element, then “w” to move to the next-by-word-boundary element.
2