Plugin de arithmetic para Vim

2 views
Skip to first unread message

Patricio Paez

unread,
Feb 13, 2018, 6:20:32 PM2/13/18
to linux...@googlegroups.com
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 ------------------------------

En la carpeta arithmetic-master abre un par de tutoriales:

vim tutorial-1
vim tutorial-2

Si usas gvim utiliza los menús Plugin -> Arithmetic -> Tutorial para otro tutorial.

Lo he probado solamente en Debian testing, me gustaría saber si está instala bien en otras distros.
Si lo pruebas y tienes sugerencias de mejora por favor escribe para tomarlas en cuenta.

Saludos,
Patricio


Reply all
Reply to author
Forward
0 new messages