vim-abolish
vim-abolish copied to clipboard
Dashes of abbreviaton not appearing if abbreviation invoked with upper case letter first
Abolish does not handle dashes correctly, if the abbreviation starts with a capital letter.
For example, first entering, in command line mode,
Abolish rhs right-hand side
then typing, in insert mode,
Rhs
and hitting the space bar gives
Righthand side
Expected is
Right-hand side
Actually you should get RightHand side, which is a consequence of the implementation being designed for camelcasing code. I'm not exactly sure where to draw the line here, but regardless the following should correctly create the 3 desired abbreviations:
Abolish Rhs Right-hand side
Thank you. This workaround works like a charm and deserves documentation. It also gave a hint on using
Abolish Q Que instead of Abolish q que if one wants Q to expand to Que instead of QUE.