Loading ...
[Plus récent] [Plus ancien] [Meilleur rang] [Mauvais rang]

PCR Postit

Linux

::

Ajouter le support UTF-8 pour vi et vim

[Trackback]
Date : 2007-10-18@15:35:33
Rang : 0

Editer le fichier /etc/vim/vimrc et ajouter

if has("multi_byte")
        set encoding=utf-8
        setglobal fileencoding=utf-8
        set bomb
        set termencoding=iso-8859-15
        set fileencodings=ucs-bom,iso-8859-15,iso-8859-3,utf-8
else
        echoerr "Sorry, this version of (g)vim was not compiled with +multi_byte"
endif