Console vim running on windows supports UTF-8.
The vim which ships with GNU On Windows doesn't have the necessary
support files for syntax highlighting to work. Wrap "syn enable" in a
try..catch block so parsing .vimrc doesn't fail when run by GOW vim.
if version >= "600" "{{{1
version 6.0
-if has("gui_win32")
+if has("win32") || has("win64")
se encoding=utf-8
endif
" Less intrusive syntax highlighting.
if has("syntax")
- syn enable
+ " The :syntax enable command tries to source the syntax.vim runtime script.
+ " Parsing this .vimrc will fail if for some reason the runtime doesn't
+ " exist, as could be the case if the binary was installed with no support
+ " files. GNU On Windows is one example of an incomplete installation.
+ try
+ syn enable
+ catch
+ endtry
endif
" Set colours.