Links: Vim

You can quickly evaluate math expressions in Vim while in insert mode or command mode

If you press Ctr-r = you’ll enter an special mode, similar to command mode, you’ll see a = below the mode-line.
In this mode you can write expressions like “2+2” and the result will be pasted in the current buffer.