Uso de VIM

Contenido/contents:
Intro
Coloreo de Sintaxis' colouring
Indentacion
Pagina principal/Home page

Intro
Normalmente yo solo uso las herramientas comunes a todas las plataformas, en el tiempo en que usaba una computadora Honewywell Bull, usaba un editor de lineas aun en las maquinas unix. I normally use the common set of tools available in all the plataform I work, by the time I worked with a Honeyweel Bull i used a line editor both in the Bull and in unix.
Actualmente uso Vim en todas mis plataformas, y aunque hace todo lo que he necesitado aun no uso ni el 10% de todo su poder. Now I use Vim in all the plataforms, with vi I can do everything I need, I haven't used mpre than 10% of his power.
Una de las funcionalidades mas bonitas es que resalte las palabras reservadas del lenguaje en colores diferentes, segun sea numero, texto, comentario, etc. One of the nice features of vim is 'syntax highlighting' of the reserved word, literal, text, remarks, etc,, in differents colors.
Otra funcionalidad agradable es la indentacion al momento de escribir, nota vim no es embellecedor de codigo, solo ayuda a indentar conforme uno teclea codigo nuevo. Another nice feature is the autoidentation while typing, Note, vim is NOT a code beautifier, just help to indent while typing new code.
Estos archivos de configuracion deben de ir en el directorio correcto, para determinar las rutas validas se puede teclear el siguiente comando estando en vi: This configuration files must be in the correct directory, to determine the correct path type the following command in vi:
:show runtimepath
runtimepath=~/.vim, /usr/share/vim/vim61/macros/vimfiles, /usr/share/vim/vim61, /usr/share/vim/vim61/macros/vimfiles/after, ~/.vim/after
Hit ENTER or type command to continue
Coloreo de Syntax's highlighting
Para activar el indentado hace falta que existan los archivos de definicion en el lugar adecuado pero ademas hay que activarla tecleando el comando syntax enable, este comando puede existir en el archivo .vimrc para que se autojecute. To activate the identation the specification file must reside in the correct directory, but also is necesary to activate it typing the syntax enable command, this command should reside in the .vimrc file to be autoexecuted.
syntax enable
Ademas es necesario identificar el tipo de archivo (las extensiones) en el archivo /usr/share/vim/vim61/filetype.vim, verifica si ya existen las definiciones, en caso contrario agregalas. Yoou also need to identify the file type (the extension) in the file /usr/share/vim/vim61/filetype.vim, verify if already there, if not, add them.
" Php3
au BufNewFile,BufRead *.php,*.php3              setf php

" Smarty
au BufNewFile,BufRead *.tpl                     setf smarty

" Informix 4GL (source - canonical, include file, I4GL+M4 preproc.)
au BufNewFile,BufRead *.4gl,*.4gh,*.m4gl,*.err  setf fgl

" Informix Forms File
au BufNewFile,BufRead *.per                     setf per
Estos archivos deben de ir en el sub-directorio 'syntax' de la distribucion, en el caso de linux seria en /usr/share/vim/vim61/syntax/. This files must be in the subdirectpry 'syntax' of the distribution, for limus the direcory is /usr/share/vin/vim61/syntax/.
El archivo de x4GL (incluyendo Aubit4GL) ya viene en la distribucion, solo lo modifique para dejarlo sin que valide mayusculas/minusculas. The file for x4GL (including Aubit4GL) is included in the vim package, I just mofied to always ignore the case.
El archivo de formas .per lo tome del sitio de 4Js y tambien lo modifique para que ignores mayusculas/monusculas y para que acepte el '_' como parte del noombre de los campos en la formas. I got the file for the .per Forms from the 4js site, the modification were for also ignoring the case and allow '_' in the field name.
http://www.lacorona.com.mx/fortiz/vim/syntax/fgl.vim # syntax for x4GL source file
http://www.lacorona.com.mx/fortiz/vim/syntax/per.vim # syntax for x4GL FORMS source file
Aqui esta el archivo para el lenguaje PHP, este lo tengo sin cambios. Solo lo agrego aqui para tener todos en un solo lugar. Here is the file for PHP code, this has no change. I put it here just for keeping everything together.
http://www.lacorona.com.mx/fortiz/vim/syntax/php.vim # syntax for PHP source file
http://www.lacorona.com.mx/fortiz/vim/syntax/smarty.vim # syntax for Smarty templates
Indent
Para activar el indentado hace falta que existan los archivos de definicion en el lugar adecuado pero ademas hay que activarla tecleando el comando filetype indent on, este comando puede existir en el archivo .vimrc para que se autojecute. To active the identation the files must reside in the proper place but also you need to active them with teh command filetype indent on, this command should reside in the .vimrc to be autoexecuted.
filetype indent on
Estos archivos deben de ir en el directorio 'indent' de la distribucion, en el caso de linux seria en /usr/share/vim/vim61/indent/. This files must reside in the subdirectory 'indent' of the distribution, in linux case is in /usr/share/vim/vim61/indent/.
El archivo de x4GL lo cree en base al archivo sh.vim, y como es la primera version tendra varias cosas que corregir o mejorar. Adradecere sus comentario. I made the file for x4GL source taking sh.viom as an example, and becasse is the first version of mu first file there'd many thing to fix or enhace. Please mail me your comnents.
http://www.lacorona.com.mx/fortiz/vim/indent/fgl.vim # Ident for x4GL source file
Aqui esta el archivo para el lenguaje PHP, este tambien lo tengo sin cambios. Solo lo agrego aqui para tener todos en un solo lugar. Here is the file for PHP code, this has no change. I put it here just for keeping everything together.
http://www.lacorona.com.mx/fortiz/vim/indent/php.vim # Ident for PHP source file