Last Updated: February 25, 2016
·
200
· obmarg

Perform calculations while editing in vim

Ever find yourself reaching for a calculator while writing code in vim? You should really use the expression register.

While in insert mode, hit Ctrl-R = then type your calculation. When you hit enter, it will be inserted into the buffer.