Vim/es

Vim (Vi improved) is a text editor based on vi. It can be used from the command line or as a standalone application with graphical user interface.

Instalación de la aplicación
To install Vim with both the ncurses-based interface ) and the graphical interface (for the X Window System - ), install :

También hay una interfaz experimenta Qt llamada.

Si no se necesita soporte del sistema X Window, simplemente se puede instalar :

Extensiones
La categoría app-vim ofrece una gran cantidad de definiciones adicionales de sintaxis, plugins y otros elementos relacionados con Vim.

Use emerge or eix to get an overview of available packages in the app-vim category:

Comenzar
Vim has a built-in tutorial which should require around 30 min to go through. Start it using the vimtutor command:

Usar Vim como ex o ed desde la línea de órdenes
It is possible to use Vim for one-liners — commands that can be used in scripts or on the command line to make changes in an unattended manner.

For instance, the following command adds  to the beginning of each line in the  file:

What happens is that Vim interprets the passed on commands (through the  option). The first command is Vim's substitution command (which is very similar to sed's), the second one is Vim's instruction to save and exit the editor.

Change file encoding
To change the file encoding of a file to UTF-8, use the following command (in Vim command mode):

As shown in the previous trick, it is possible to do this from the command line as well:

Ver también

 * Learning Vim

External resources

 * Documentación de Vim Incluye manuales (también conocidos como ":help" y Libros de Vim personales libres ), FAQS, HOWTO's, Tutoriales, en formatos HTML, PDF y PS.
 * Scripts/Plugins de VIM
 * Learning the vi and Vim Editors, 7th Edition O'Reilly  Print ISBN: 978-0-596-52983-3, Ebook ISBN: 978-0-596-15935-1