sponsor Vim development Vim logo Vim Book Ad

VimSum : Simple visual mode arithmetic in Vim

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

created by
will gurecky
 
script type
utility
 
description
Github page with example use:
https://github.com/wgurecky/vimSum

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.
 
install details
Requires vim built with +python
 

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
VimSum.zip 0.1 2016-01-16 7.0 will gurecky Initial upload
ip used for rating: 3.138.113.188

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.
   
Vim at Github