Perform calculations while editing in vim
Ever find yourself reaching for a calculator while writing code in vim? You should really use the expression register.
While in insert mode, hit Ctrl-R
=
then type your calculation. When you hit enter, it will be inserted into the buffer.
Written by Graeme
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Vim
Authors
Related Tags
#vim
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#