Mert Nuhoglu
Mert Nuhoglu

Reputation: 10133

How to increment from 07 to 08 in GVim?

It looks like using Ctrl-A in GVim doesn't increment from 07 to 08 since a prefix 0 is interpreted as octal numbers by default.

How to make Gvim increment from 07 to 08?

Upvotes: 2

Views: 606

Answers (1)

Hui Zheng
Hui Zheng

Reputation: 10224

Command :set nrformats-=octal will do the trick. You can always use :set nrformats+=octal to restore nrformats. Or, if you don't like hex format either, you can just type :set nrformats=alpha. Alternatively, you can save this setting in .vimrc file if you'd like.

Upvotes: 11

Related Questions