Fork me on GitHub
#spacemacs
<
2018-12-02
>
jeremy00:12:23

Is there a quick command for slurp barf?

8
theeternalpulse01:12:54

SPC k to enter the lisp state, b for barf s for slurp. j moves to next closing boundary, k moves to previous opening. I use evil-cleverparans which have a simple`>` and < for slurp and barf respectively with no need for a state. It also has other movement keys that are all usable in movement mode with evil

👍 4
jeremy01:12:53

I guess I will need to get used to lisp state. If I’m in insert vim mode, then esc + spc + k + s seem’s like a lot of work. Maybe I’m missing something.

kommen10:12:41

you can try enabling safe structural editing with , T s, then > slurps and < barfs

👀 8
👍 8
theeternalpulse11:12:41

@U45J3R52L I did not know that evil cleverparens was already included.

kommen12:12:48

it is, but it is hard to find and I also was wondering why this is not enabled by default…

theeternalpulse16:12:52

I think mainly because evil-cleverparens has some confusing bindings for parens, curly brace, and brackets in movement mode that could be confusing.

jeremy00:12:33

I actually had that enabled but had never learned how to use it! Thanks!