triglav/vim-visual-increment

VisualIncrement swallows hyphens

ethagnawl opened this issue · 2 comments

Before:

id="thing-0"
id="thing-0"
id="thing-0"
id="thing-0"
id="thing-0"

After:

id="thing-0"
id="thing1"
id="thing2"
id="thing3"
id="thing4"

VIM 7.4 on Debian 8.6

The plugin uses Vims own increment functionality, therefor I do not consider this to be a bug.
Vim sees the "-0" as a "minus and zero", rather than a hyphen.

Consider following example.
Before:

id="thing-3"
id="thing-3"
id="thing-3"
id="thing-3"
id="thing-3"

After:

id="thing-3"
id="thing-2"
id="thing-1"
id="thing0"
id="thing1"

@triglav That actually makes a lot of sense. Thanks for the prompt response.