vim - Slurpage and barfage in Clojure -


i using vim-sexp , vim-sexp-mappings-for-regular-people plugins editing clojure files. don't quite understand slurp , barf commands exactly.

i tried playing them, , seems insert/remove forms @ beginning/end of adjacent form. correct? if not, proper definition slurp , barf?

slurping , barfing essential operations/concepts use 1 of modern structural code editors. after getting used them i'm incapable of editing code without these. of ~20 people sit me writing clojure day all of them use these time. saying "helpful lisp coders" tactful , polite understatement.

slurp: (verb)

"to include item 1 side of expression surrounding point expression"

barf: (verb)

"to exclude either left or right item in expression surrounding point expression"

and examples.

1 2 (3 4) 5 6 

slurp right:

1 2 (3 4 5) 6 

barf right:

1 2 (3 4) 5 6 

slurp left:

1 (2 3 4) 5 6 

barf left:

1 2 (3 4) 5 6 

and we're started.

when give talks/presentations introducing paredit leave students/attendees these 2 concepts because feel enough start getting benefit of structural editing without being overwhelming. once comfortable these then move on structual navigation learning move forward/backward , up/down expression rather character.

even though list emacs keybindings still highly recommend animated guide paredit peter rincker mentions in answer.


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -