On Monday, October 10, 2016 at 10:33:26 AM UTC-5, Erhy wrote: > Hello, > for administer Windows I would like to use gVIM. > But there are some UTF encoded files. > Opening such files gVim decoded them and save the without BOMB. > Are there setting to have the same behavior as Windows notepad? > Thank you for tips > Erhy
I guess, you're asking how to save the file with a BOM? For that, ":set bomb" before saving will do the trick. 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 -- -- 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 [email protected]. For more options, visit https://groups.google.com/d/optout.
