A blog dedicated to text editing and general exploration of computing knowledge
You mean register. And a( is just another text-object. Every Vim user should know them all.The help also says it can select [count] blocks, from [count] [( to the matching ) making it easy to grab the current and surrounding s-exprs.
Please excuse the semantic shortcomings... (grabs morning coffee), and yes, it is just a text object (which I posted about in 2007).
Why not just use y% on one of the parens?
Leslie, using y% requires your cursor to be on one of the parens. Using text-objects doesn't have that same restriction.
Thanks, that's a great hint for me (80% of my writing consists of sexps).
I believe that the a( cmd takes a count so if your cursor is inside a multiply-nested expression you can use 2a(, 3a( and so on to refer to outside s-exprs
Ok this hint is really useful! Going to use it when I start coding Clojure :) Thanks for this.
Post a Comment