Hola usuarios de Vim,
Escribí un plugin para incluir cálculos aritméticos en archivos de texto. O sea, si escribes: 2 x (1 + 4) = cuando presionas <f5> se escribe el resultado a la derecha del signo de igual. Si escribes: a=1,000 b=5 a / b x 50% = <f5> escribirá el resultado usando los valores de a y b.
Si quieres probar el plugin, copia y pega los siguientes comandos en una terminal; no se necesita root, la descarga son 31,795 bytes, el instalador toma menos de un segundo:
wget https://github.com/ppaez/arithmetic/archive/master.zip
unzip master.zip
cd arithmetic-master
vim-plugin/install.sh
La última línea deberá reportar:
Installing the arithmetic plugin -------
Check that Vim includes Python 3 support
Ok
Copy files under /home/pp/.vim
'vim-plugin/arithmetic.vim' -> '/home/pp/.vim/plugin/arithmetic.vim'
'vim-plugin/arithmetic.txt' -> '/home/pp/.vim/doc/arithmetic/arithmetic.txt'
'vim-plugin/tutorial.txt' -> '/home/pp/.vim/doc/arithmetic/tutorial.txt'
'vim-plugin/wrapper.py' -> '/home/pp/.vim/python3/wrapper.py'
'vim-plugin/../arithmetic.py' -> '/home/pp/.vim/python3/arithmetic.py'
Ok
Prepare :help arithmetic
Ok
Finished ------------------------------