Skip to content

Latest commit

 

History

History
9 lines (5 loc) · 543 Bytes

tip16.md

File metadata and controls

9 lines (5 loc) · 543 Bytes

Tip16: Do Back-of-the-Envelope Calculations in Place

Expression Register: allows us to perform calculations and then insert the result directly into our document.

expression register is addressed by the = symbol. From Insert mode we can access it by typing <C-r>=: opens a prompt at the bottom of the screen where we can type the expression that we want to evaluate. When done, we hit <CR>, and Vim inserts the result at our current position in the document.

tip16