Thursday, June 6, 2013

Running Python commands in vim

Run ...

:py print 2 ** 38

... to print 274877906944 to screen in vim.

The feature works only when vim has been compiled with the the +python option enabled.

Run ...

vim --version

... to see if your install of vim was compiled with the +python option enabled.

No comments: