azabiong / vim-highlighter

Highlight words and expressions
MIT License
226 stars 9 forks source link

Is there a way to disable the command line abbreviation? #27

Closed Asheq closed 11 months ago

Asheq commented 11 months ago

I didn't know this cabbrev existed but stumbled upon it by surprise. I wanted to search for the text HI so I typed /HI<CR>, but then all of a sudden it was searching for Hi instead, leaving me confused for a bit. I would rather avoid these kinds of surprises, if possible. (It's also weird that cabbrev applies to both : commands and / commands but that is a "problem" with neo/vim itself).

https://github.com/azabiong/vim-highlighter/blob/e625c9a475b760f970c2f813cbe37e9d28cd51ed/plugin/highlighter.vim#L70

Anyway, thanks for the incredible plugin @azabiong!

azabiong commented 11 months ago

Thank you for identifying this issue and providing a detailed explanation. 👍 Now it's fixed! It was initially introduced for the convenience of command typos. However, since both the Hi and HI commands are currently supported, I think the ca command can be omitted. Thanks!

Asheq commented 11 months ago

Great, thanks! 🚀

Asheq commented 11 months ago

Closed by 314272f69a4b49b9d06b3e07b44747323f26b9fe