Skip to content

fcpg/vim-colddeck

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vim-colddeck

Vim meets Instacalc meets Hewlett-Packard calculators

Colddeck ("Column dc") is a single-column spreadsheet using dc for computations. You jot down values and formulas, one per line, and the result is shown on the right.

Extra features:

  • References to other rows (absolute and relative)
  • Ranges
  • Aggregates (sum, min/max, average...)
  • Vim expressions (experimental)
  • Value references (experimental)

Example

asciicast

Syntax in a nutshell

  • R3: reference to row #3
  • R-1: relative reference to the row above
  • R+2: relative reference to the second row below
  • R1:R3: range of rows from #1 to #3 (insert values and number of elements)
  • R1:R3 @sum: sum of row #1 to #3 (other aggregates: @min, @max, @avg, @prod)
  • 42 # text: add "text" as a comment, while passing the value '42' to dc
  • 42 ## Label: add "Label" as a right-aligned comment and hide the value or formula on its left, that is still passed to dc
  • `log(2)`: vim expression (evaluated before passing the line to dc)
  • $2: result of the evalutation of row #2 (must have been previously computed; evaluated before passing the line to dc)

See the documentation for full manual.

FAQ

What is it?
A single-column spreadsheet, in Vim, with postfix operators. Look ma, no Excel.

"dc", WTF?
Who doesn't love rabid panda notation?

Installation

Use your favorite method:

License

Attribution-ShareAlike 4.0 Int.

About

Vim single-column spreadsheet with RPN

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published