Simple calculations with Vim's expression register

Published: Oct. 16, 2013, midnight

The expression register lets us evaluate a snippet of Vimscript code. This is handy when you need to perform simple calculations and insert the result into the document.