Skip to main content

Posts

Showing posts from August, 2014

Vim tip: calculate an expression

Whenever need to evaluate an expression while editing code in Vim? No need to switch the window. Use :echo . Try this :echo 2+2 or this :echo sqrt(2) . How about :echo pow(2,10) ? Surprise, 1024.