sponsor Vim development Vim logo Vim Book Ad

vim-numbers : Text objects for numbers

 script karma  Rating 4/1, Downloaded by 22  Comments, bugs, improvements  Vim wiki

created by
 
script type
utility
 
description
A small plugin that provides text objects for numbers.

Demo:
https://raw.githubusercontent.com/MisanthropicBit/vim-numbers/master/vim-numbers-demo.gif

- Typing van or vin selects an integral or floating-point number (optionally with scientific notation and/or thousand separators).
- Typing vai or vii selects a binary number (prefixed by 0b or 0B).
- Typing vax or vix selects a hexadecimal number (prefixed by 0x, 0X, or #).
- Typing vao or vio selects an octal number (prefixed by 0 or 0o).
- There is no difference in selecting "a number" or "inner number".

The plugin is maintained at https://github.com/MisanthropicBit/vim-numbers.
 
install details
Extract the zip in ~/.vim (or ~\vimfiles on Windows) or see https://github.com/MisanthropicBit/vim-numbers for alternative install details.
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
vim-numbers-1.0.0.zip 1.0.0 2020-12-30 7.4 Initial upload
ip used for rating: 18.234.247.75

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
OSDN