guns / vim-sexp

Precision Editing for S-expressions
MIT License
612 stars 33 forks source link

Forms prefixed by # do not handle the # character with af text object #7

Closed arsenerei closed 9 years ago

arsenerei commented 9 years ago
(map #(f % 5) (range 10))

With the cursor inside the anonymous function, daf deletes the form, except for #. You will get similar results with #"".

guns commented 9 years ago

Hello, thanks for reporting!

This is intentional; try the "element" (ie, ae) text objects to operate on forms with leading macro characters.

arsenerei commented 9 years ago

Ah, okay. ie and ae work as you say. Unfortunately, it requires I ( before I can act on the form including #, whereas with if and af I can do so anywhere inside the form.

Since this is intentional, I'll close this issue, but being able to toggle *f to include # would be nice, as it feels more intuitive to me. In addition, it would make <LocalLeader>@ and dsf from tpope's mappings work.

This plugin is awesome, though!