sponsor Vim development Vim logo Vim Book Ad

set_utf8.vim : Switching to Unicode in an orderly manner

 script karma  Rating 49/22, Downloaded by 4229  Comments, bugs, improvements  Vim wiki

created by
Antoine Mechelynck
script type
This script endeavours to set the various options required to allow (g)vim to process Unicode files properly, without, for instance, messing up keyboard input.
install details
1) Copy this script to your "user scripts" direcory,
   i.e.: (direectory names below as required by the corresponding shell)
o for Unix (with sh or similar):

o for Windows (with COMMAND.COM, CMD.EXE or similar)
  - if you have a HOME directory

  - if you don't; but have a VIM directory

  - otherwise, it will usually be something similar to one of the
    following, depending on where you installed Vim (take your pick):
    "C:Program Files\VIM\vimfiles\scripts"

2) Open the script in a text editor such as Vim.
There are two settings at the end which you might want to comment away.

How to use it: simply add the following line to your vimrc, if and when you
want to switch over to UTF-8 processing:

runtime scripts/set_utf8.vim

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
set_utf8.vim 1.01 2003-10-12 6.0 Antoine Mechelynck no change, except the script's ends-of-line are now in "unix" format for compatibility across platforms.
set_utf8.vim 1.0 2003-10-12 6.0 Antoine Mechelynck Initial upload
ip used for rating:

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.