calculator in vim

Using Vim’s expression register, you can do some basic math. Here’s how it works: 1. In Insert mode, hit Ctrl-r and then hit = 2. In a new prompt, starting with = type your operation, …