In Lispy code there can be identifiers with dash signs instead of underscores, like that:
(defn create-something ...)
(defn create-anything ...)
(defn create-nothing ...)
If type crea^P
, Vim shows just "create" as completing result. How to make it interpret '-' as part of identifier and offer the whole identifiers for completion?
For those (like me) who ended up here more for CSS than lisp, the accepted (and correct!) answer may not be appropriate for you. Using set lisp
also changes other things (like indentation).
A less intrusive method is to add the hyphen to your iskeyword
, something like this:
:set iskeyword+=\-
See help iskeyword
as @romainl suggested.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With