Tuesday, October 11, 2016

Re: How gVIM can handle UTF like notepad

On 10/10/2016 17.42, Ben Fritz wrote:
> To detect this automatically, be sure that you have "set
> encoding=utf-8", "setglobal bomb", and "set
> fileencodings=ucs-bomb,utf-8,latin1" or similar in your .vimrc.
> http://vim.wikia.com/wiki/Working_with_Unicode

Can you tell me if you intentionally used "setglobal" for "bomb", or you
just copied what's in that wiki?
On my system the global bomb setting is not used if I don't also add
"setlocal bomb<" or "set bomb<".

It is likely that on that wiki "setglobal" was used just by chance,
because that's what was used for fileencoding, see
http://vim.wikia.com/wiki/Working_with_Unicode?diff=29876&oldid=29794 .

Also it shouldn't be necessary to set "fileencodings", when encoding is
set to utf-8 it gets set by default to a good
"ucs-bom,utf-8,default,latin1".

Gabriele

--
--
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.

No comments: