Bram Moolenaar wrote on 2001-05-03 12:43 UTC:
> Markus Kuhn wrote:
> > I also tried vi quickly (VIM 6.0z ALPHA) with LANG=en_GB.UTF-8, but when
> > I used "vi UTF-8-demo.txt", I just got garbled text on the screen. man
> > vi did not contain the search string "uni" or "utf". Couldn't figure out
> > whether the vim 6.0z that comes with RH 7.1 has any UTF-8 support. It
> > certainly didn't work out-of-the-box.
>
> Try this:
>
> :version
>
> If utf-8 support is included you should see "+multi_byte". If not then it's
> "-multi_byte". If it's included then it _should_ automatically switch to
> using utf-8 when the locale says so.
It says:
VIM - Vi IMproved 6.0z ALPHA (2001 Mar 24, compiled Apr 2 2001 09:24:50)
Compiled by [EMAIL PROTECTED]
Tiny version without GUI. Features included (+) or not (-):
-autocmd -balloon_eval -browse +builtin_terms -byte_offset -cindent
-cmdline_compl -cmdline_hist -cmdline_info -comments -cryptv -cscope -dialog
-digraphs -ebcdic -emacs_tags -eval -ex_extra -extra_search -farsi
-file_in_path -osfiletype -find_in_path -folding -footer +fork() -gettext
-hangul_input -insert_expand -jumplist -keymap -langmap -libcall -linebreak
-lispindent -listcmds -localmap -keymap -menu -mksession -modify_fname -mouse
-mouse_dec -mouse_gpm -mouse_jsbterm -mouse_netterm -mouse_xterm -multi_byte
^^^^^^^^^^^
-multi_lang -path_extra -perl -python -quickfix -rightleft -ruby -scrollbind
-signs -smartindent -sniff -statusline -sun_workshop -syntax -tag_binary
-tag_old_static -tag_any_white -tcl +terminfo -termresponse -textobjects -title
-toolbar -user_commands -vertsplit -virtualedit -visual -viminfo +wildignore
-wildmenu -windows +writebackup -X11 -xfontset -xim -xterm_clipboard
-xterm_save
system vimrc file: "/usr/share/vim/vim60z/macros/vimrc"
user vimrc file: "$HOME/.vimrc"
user exrc file: "$HOME/.exrc"
fall-back for $VIM: "/usr/share/vim"
Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H -O2 -march=i386 -mcpu=i686 -
D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -Wall
Linking: gcc -L/usr/local/lib -o vim -ltermcap -ldl
so RH 7.1 simply didn't include vim UTF-8 support at compile time. :-(
Markus
--
Markus G. Kuhn, Computer Laboratory, University of Cambridge, UK
Email: mkuhn at acm.org, WWW: <http://www.cl.cam.ac.uk/~mgk25/>
-
Linux-UTF8: i18n of Linux on all levels
Archive: http://mail.nl.linux.org/lists/