Skip to content

Instantly share code, notes, and snippets.

@voyeg3r
Created March 9, 2009 01:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save voyeg3r/76029 to your computer and use it in GitHub Desktop.
Save voyeg3r/76029 to your computer and use it in GitHub Desktop.
calculadora científica no vim
" calculadora científica no vim
" url: http://vivaotux.blogspot.com/2009/03/calculadora-cientifica-com-o-vim.html
" se tem suporte a python no vim
:command! -nargs=+ Calc :py print <args>
:py from math import *
" se você não tem suporte a python no vim mas tem o python instalado faça:
command! -nargs=+ Calc :!python -c "from math import *; print <args>"
" para ler mais dicas como esta: http://code.google.com/p/vimbook
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment