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)
- Pathogen:
git clone https://github.com/MisanthropicBit/vim-numbers ~/.vim/bundle/vim-numbers
- NeoBundle:
NeoBundle 'MisanthropicBit/vim-numbers'
- VAM:
call vam#ActivateAddons(['MisanthropicBit/vim-numbers'])
- Vundle:
Plugin 'MisanthropicBit/vim-numbers'
- vim-plug:
Plug 'MisanthropicBit/vim-numbers'