How do I increment strings in Vim?
Posted
by Chas. Owens
on Super User
See other posts from Super User
or by Chas. Owens
Published on 2010-05-06T14:42:19Z
Indexed on
2010/05/06
14:48 UTC
Read the original article
Hit count: 357
vim
I can increment integers in Vim using <Ctrl>-a. The docs seem to say that if I set nrformats to "octal,hex,aplha" (which I am trying to do with :set nrformats="octal,hex,alpha") then <Ctrl>-a will increment a to b, 007 to 010, and 0x09 to 0x0f, but those examples are not working for me (I just a get a beep for a, 007 turns into 008, and 0x09 turns into 0x10).
© Super User or respective owner