A small plugin that provides text objects for numbers.
- Typing
van
orvin
selects an integral or floating-point number (optionally with scientific notation and/or thousand separators). - Typing
vai
orvii
selects a binary number (prefixed by0b
or0B
). - Typing
vax
orvix
selects a hexadecimal number (prefixed by0x
,0X
, or#
). - Typing
vao
orvio
selects an octal number (prefixed by0
,0o
, or0O
).
There is no difference in selecting "a number" or "inner number".
(Demo uses keycastr and Mac's Cmd+Shift+5)