Vim: Ctrl-A/X not working correctly if the numbers aren't surrounded by separators

Created on 22 Aug 2016  路  3Comments  路  Source: VSCodeVim/Vim

What did you do?

I used Ctrl-A on something like width: 2em; or abc1.

What did you expect to happen?

They should have changed to width: 3em; and abc2.

What happened instead?

Nothing

Technical details:

none

  • VSCode Version: 1.4.0
  • VsCodeVim Version: 0.1.7
  • OS: Mac OSX 10.11.6 (15G31)
kinbug

All 3 comments

Yep I reproduced this easily if the number is not separated by some character like a space or colon.

Good find

I use it a lot (mainly in css) so I noticed it immediately. I think it relates to #563. BTW, thank you for the work you are putting in this project!

It's semi-related to #563 (although that's mostly just a bug in handling single-character ranges). I totally forgot about this use case when implementing. We're probably going to have to change the search mode for numerals from "word boundaries" to "anything that's not a number", since hitting ctrl-a on 123foo should work.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

waltiam picture waltiam  路  3Comments

lucastheisen picture lucastheisen  路  3Comments

edwintorok picture edwintorok  路  3Comments

AndersenJ picture AndersenJ  路  3Comments

WangRongda picture WangRongda  路  3Comments