VimSum : Simple visual mode arithmetic in Vim
| script karma
Downloaded by 601
Comments, bugs, improvements
script versions (upload new version)
| Github page with example use:
VimSum is a collection of simple scripts that provide the ability to perform basic calculations in vim.
The scripts can be used on columns of numbers by selecting them in visual mode. The scripts also can operate on mixed number/word paragraphs (only operating on numbers). The format of numbers in text may also be adjusted using the VisMult or VisMath script.
Common use cases:
- Multiply many numbers by a constant. Encountered when changing units.
- Compute sum or mean of column in text file and immediately paste result back into text.
- Perform basic arithmetic on a column of numbers.
- Change format of numbers in text e.g. from scientific notation to decimal format.
Inspired by visSum.vim by erik falor.
|Requires vim built with +python|
Click on the package to download.
ip used for rating: 184.108.40.206