Skip to content

Modify CTRL-a incrementing to better handle dashes #38

@salcode

Description

@salcode

Add

vim.opt.nrformats:append('blank')

from Vim Increment Number With Dash to correct bug where sprint-23 "increments" to "sprint-22" because the -23 part of the string is interpreted as a negative number.

By using the blank option, -23 is only treated as a negative number if there is a blank before -, therefore sprint-23 is NOT treated as a negative.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions