peter juuls <peterjuuls <at> yahoo.es> writes:
> BUT it has always been a mystery to me how to control
> character sets used in vim ..
Me too. 
In Spanish we use several accented letters and the &ntilde; that's more or less
like the problem of your's.

I edit old DOS programs with the console vim, named vim.exe and have in the
_vimrc file the following:

" Codepage IBM850
set encoding=cp850

This makes vim interpret the accented characters correctly. 
In the _gvimrc file I have:

" encoding: latin1 = ISO8859
set encoding=latin1

wich should be OK for you too.
When I open a DOS file with gvim I can do

:set encoding=cp850

and all gibberish becomes what it should be, on screen. 
Upon saving, the file will be written with DOS encoding.

Peter, this is all my knowledge and beyond. Maybe it's useful for you to start a
research.
Good luck!
--
Juan Lanus
TECNOSOL
Argentina


Reply via email to