vim-abolish icon indicating copy to clipboard operation
vim-abolish copied to clipboard

Dashes of abbreviaton not appearing if abbreviation invoked with upper case letter first

Open Konfekt opened this issue 11 years ago • 2 comments

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

Konfekt avatar Jun 15 '14 19:06 Konfekt

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

tpope avatar Jun 24 '14 12:06 tpope

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.

Konfekt avatar Jun 24 '14 13:06 Konfekt