Forgive me if this is a common question, but how can I wrap an expression in [] with spacemacs and evil-lisp-state? I know that SPC + k + w wraps in parens but can't figure out how to wrap in other Clojure forms
I usually do SPC v
to select a word, s to surround with a character, ]
to surround with square brackets without a space, or [
to include a space.
That's nice too, thanks for sharing.
Hmm, v e
would also work if you are at the start of the word and is the only word to be surrounded. SPC v
is nice as you can keep on expanding the selection with v
, eg. SPC v v v V
and shift-v to shrink the selection.
I use SPC v
with ~
when I want to capitalise words, its very handy.