Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Visual mode: increment letters of the alphabet and roman numerals clash #19

Open
kiryph opened this issue Aug 27, 2015 · 4 comments
Open

Comments

@kiryph
Copy link

kiryph commented Aug 27, 2015

Consider I have an alphabetically enumerated list:

a)
b)
c)

I'd like to increment them in visual mode. I get following result:

b)
c)
ci)

How could this be resolved?

  • no roman numerals incrementing in visual mode
  • same 'type' incrementing when applying to several lines.

I know roman numerals can be disabled by :SpeedDatingFormat! but I would expect a consistent default behaviour of speeddating itself.

@tpope
Copy link
Owner

tpope commented Sep 14, 2015

In hindsight, I think a better visual mode behavior would be to clobber the second row onward with additional increments of the first, sidestepping this entirely. This already happens when the rows are blank so forcing it to happen all the time is probably tenable. Please do investigate.

@chrisbra
Copy link

Note: current Vim do provide functionality for visual mode plus adding the g function

@akkartik
Copy link

akkartik commented May 24, 2016

@chrisbra: I didn't follow your comment. g function? You mean like :g//? I don't see how I'd use that in this situation. Please elaborate?

@tpope: this problem exists even outside of visual mode. Today I hit ctrl-a on this line:

id: 3

I expected:

id: 4

but I got:

dii: 3

@chrisbra
Copy link

what i meant is described at :h v_g_CTRL-A

pylipp added a commit to pylipp/dotfiles that referenced this issue Jul 11, 2019
- vim-speeddating modifies roman numerals
  (tpope/vim-speeddating#19)
- vim-ros is not used; also invokes Python2 support
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants