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, for example (6*2)/3
3. Hit Enter, and the result will be inserted under your cursor.