I like dc too, and wrote this plugin for Vim: https://github.com/fcpg/vim-colddeck
The power of old tools :)
The power of old tools :)
These still could be done in Vim but it’s more than just a unixy calculator or text-editor spreadsheet.
$ . calc.sh
$ * 4 5
20
$ / 21 3
7
It’s a WIP. I’ll probably add floating point and a stack.
Which will mean moving away from `dc` to awk/python/something else running in the background, using sh co-processes.