Created
March 9, 2009 01:00
-
-
Save voyeg3r/76029 to your computer and use it in GitHub Desktop.
calculadora científica no vim
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" 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