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 4294  Comments, bugs, improvements  Vim wiki

created by
Antoine Mechelynck
 
script type
utility
 
description
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
Installation:
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):
  $HOME/.vim/scripts

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

  - if you don't; but have a VIM directory
    %VIM%\vimfiles\scriprs

  - otherwise, it will usually be something similar to one of the
    following, depending on where you installed Vim (take your pick):
    C:\VIM\vimfiles\scripts
    "C:Program Files\VIM\vimfiles\scripts"
    C:\PROGRA~1\VIM\vimfiles\scripts
    C:\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: 54.235.6.60

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.
   
Vim at Github