Is there a way to make vim ignore case on commands?
For example, I want vim to recognize :vex
as :Vex
.
Appreciate any pointers!
Is there a way to make vim ignore case on commands?
For example, I want vim to recognize :vex
as :Vex
.
Appreciate any pointers!
There is no simple option, and a simplistic mapping (as in @romainl's answer, even when only applied to command-line mode) suffers from problems like noticeable delay or inadvertent application in other contexts.
I would recommend to use the cmdalias.vim plugin, which handles this quite well:
:Alias vex Vex