tpope / vim-speeddating

speeddating.vim: use CTRL-A/CTRL-X to increment dates, times, and more
http://www.vim.org/scripts/script.php?script_id=2120
969 stars 40 forks source link

Add setting to skip roman numerals #14

Closed wellle closed 10 years ago

wellle commented 10 years ago

I like speeddating for dates. I haven't seen or used roman numerals since CMXCVI.

But sometimes I want to something like the following: Increment the number 1 in this line from the beginning of the line:

c.Assert(err1, IsNil)

But instead of err2 I get ci.Assert because the variable name was interpreted as roman numeral.

Please add a setting to disable handling of roman numerals.

tpope commented 10 years ago

You can disable any format with :SpeedDatingFormat! in after/plugin/speeddating.vim. The Roman numeral formats are %v and %^v.

wellle commented 10 years ago

Alright, thank you.