I would like to insert the output of multiple calculations into my text document:
2**3 = (the result)
2**4 =
..
2**30 =
(** = exponential)
Can anyone help me?
P.S.:
It would be nice to have a kind of immediate scripting in vim without using .vimrc,
just to do quick operations
p.e.
for i in range (3,30)
print "2**".i."=".2**i
endfor
You can write a
for...looplike this:Another way is to redirect messages to a file: