This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-08-14
Channels
- # beginners (116)
- # boot (6)
- # cider (16)
- # cljdoc (5)
- # cljsrn (3)
- # clojure (156)
- # clojure-conj (5)
- # clojure-finland (1)
- # clojure-italy (46)
- # clojure-mexico (36)
- # clojure-russia (2)
- # clojure-sanfrancisco (1)
- # clojure-spec (10)
- # clojure-uk (69)
- # clojurescript (71)
- # core-async (2)
- # cursive (18)
- # datomic (91)
- # duct (2)
- # editors (1)
- # emacs (5)
- # figwheel-main (11)
- # fulcro (31)
- # graphql (8)
- # hispano (1)
- # jobs (1)
- # jobs-discuss (2)
- # lambdaisland (1)
- # london-clojurians (1)
- # nyc (1)
- # off-topic (104)
- # onyx (34)
- # parinfer (3)
- # pedestal (2)
- # precept (17)
- # protorepl (2)
- # re-frame (13)
- # reagent (4)
- # ring-swagger (52)
- # shadow-cljs (92)
- # spacemacs (17)
- # sql (14)
- # tools-deps (6)
- # unrepl (4)
- # vim (39)
what is the equivalent to vim-commentary? I would be able to select lines of text and then just hit gc
and it would comment or uncomment the text. super useful and i imagine there is something equivalent built in or readily available.
also how do you folks prefer to move through your buffers more quickly than my current spc b b
and then fuzzy search through the list?
@chase-lambert visual select (`v` / V
) and then gc
works for me. For buffer switching, I like to use [ b
to go backwards, and then ] b
to go forward. If that doesn't get me there in 1-2 hops, I like using SPC p f
to fuzzy search files.
Buffer switching I mostly do by project by SPC p h
(`helm-projectile`). Or SPC b b
if it's not a project buffer.
Yes, to comment out sexps (which can be as small as a single token, eg #_foo
). That's my method of choice for commenting in clj/s.
SPC b b
is good for quick-swapping to a buffer. The [ b
and ] b
commands are actually part of a larger "suite" of semantics. For example, ] e
can be used to swap lines of code up and down, [ w
can swap between windows, and I think ] q
can be used to jump back and forth between errors in your buffers.
(Finally remembered the Tim Pope plugin where these hotkeys come from: https://github.com/tpope/vim-unimpaired)
@spfeiffer yep, I believe they come with evil mode