Giter Club home page Giter Club logo

vim-colddeck's Introduction

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.

vim-colddeck's People

Contributors

andrewradev avatar ernstwi avatar fcpg avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.