"------------------------------------------
" .vimrc includes
"----------------------
:set ffs=dos,unix,mac " autosense Dos,Unix,Mac
:set fileencodings=ucs-bom,utf-8,latin1 " autosense coding
" (no fileencoding is set in .vimrc)
"------------------------------------------
" my menu includes
"----------------------
:set fileencoding=latin1<CR><Esc>:set ff=dos<CR>:w!<CR> " ANSI Dos
:set fileencoding=utf-8<CR>:w!<CR><Esc> " UNICODE
"-------------------------------------------
but they don't work correctly (I check the files with an
other editor)...
1) I open an ANSI file with GVim, I ask ":set fileencoding"
and the file appears as "utf-8"
2) conversion between ANSI <> UNICODE and then reverse likes
right ("converted" in bottom status line), but refreshing
the file on the other editor I see the same coding...
Does anybody can help, pls?
Hi all!
I need to perform ANSI/UNICODE commands in my GVIM.
I read many docs on the web about and I did set these:
"------------------------------------------
" .vimrc includes
"----------------------
:set ffs=dos,unix,mac " autosense Dos,Unix,Mac
:set fileencodings=ucs-bom,utf-8,latin1 " autosense coding
" (no fileencoding is set in .vimrc)
"------------------------------------------
" my menu includes
"----------------------
:set fileencoding=latin1<CR><Esc>:set ff=dos<CR>:w!<CR> " ANSI Dos
:set fileencoding=utf-8<CR>:w!<CR><Esc> " UNICODE
"-------------------------------------------
but they don't work correctly (I check the files with an
other editor)...
1) I open an ANSI file with GVim, I ask ":set fileencoding"
and the file appears as "utf-8"
2) conversion between ANSI <> UNICODE and then reverse likes
right ("converted" in bottom status line), but refreshing
the file on the other editor I see the same coding...
See discussion in vim_use
http://groups.google.com/group/vim_use/browse_thread/thread/cc7e9076fa7d277d
John