gcmt / wildfire.vim

Smart selection of the closest text object
MIT License
611 stars 19 forks source link

Q: how to select outer parens? #23

Closed mfiano closed 3 years ago

mfiano commented 9 years ago

How can I use this to select the parentheses as well, when used with a Lisp language?

gcmt commented 9 years ago

If you need to sporadically select outer parentheses you can just hit a) once you have selected the i) text object. Otherwise you can add the a) text object to candidates:

cal wildfire#triggers#Add("<SPACE>", {
  \ "*" : split("i' i\" i) i] i}"),
  \ "lisp" : split("i) a)"),
\ })