see my corrected additional lines for Wordpad compatibility at the end of this posting
The results of my test are:
Edit existing files with VIM are written back in the same UTF/UNICODE/ANSI code as originally.
Creating a new file differs
Notepad accepts all characters e.g. by paste text from a page with IE
and warns on saving the file in ANSI format when there are UNICODE characters.
With VIM UNICODE characters pasted are not shown as expected.
A corrective is
set encoding=utf-8
Because I prefer to have the same result as with Notepad
I put additionally
set bomb
"additional lines in my _vimrc
"
setglobal nofixendofline
set fixendofline<
"
if has("multi_byte")
if &termencoding == ""
let &termencoding = &encoding
endif
setglobal fileencodings=ucs-bom,utf-8,latin1
set fileencodings<
endif
"
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Wednesday, October 12, 2016
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment