Usando UTF-8 con Gvim en Windows
Después de un par de años usando Vim para todo en GNU/Linux, las pocas veces que accedo a Windows también lo necesito para editar cualquier tipo de fichero. Sin embargo, cuando intento editar algún fichero de los que ya tengo creados en mis particiones EXT3 tengo problemas con la codificación de los ficheros. En GNU/Linux utilizo siempre la codificación UTF-8, mientras que Windows utiliza su codificación por defecto (ISO-8859-1), y por lo tanto cuando abrimos archivos con Vim dentro de Windows observamos que algunos caracteres no se observan bien. La solución a este problema es bien sencilla, tan solo tenemos que editar nuestro fichero _vimrc y añadir la siguiente línea:
set enc=utf-8
Visto aquí.
After a couple of years using vim for everything in GNU/Linux, the few times that I use Windows I need it to edit any kind of file. However, when I try to edit some of the already created files in my EXT-3 partitions I have problems with the codification of the them. In GNU/Linux I always use the UTF-8 codification while Windows by default uses its codification (ISO-8859-1). Therefore, when I open these files in Windows some of the characters are not displayed correctly. The solution to this problem is easy, we only have to edit our _vimrc file and add the next line:
set enc=utf-8
Seen here.
loading...




Últimos comentarios