That's fair. It's ok to set encoding to utf-8. MacVim sets it for you as
default anyway so it's not necessary, but it could be useful to set that in
vimrc to maintain cross-compatibility, if you use Vim on platforms where
that is not the case.

On Fri, Apr 21, 2023 at 2:10 AM Lifepillar <lifepil...@lifepillar.me> wrote:

> On 2023-04-19, Tony Mechelynck <antoine.mechely...@gmail.com> wrote:
> > On Tuesday, April 18, 2023 at 5:58:25 PM UTC+2 Yee Cheng Chin wrote:
> >
> > No, please *don't* set fileencoding, encoding, or fileformats in your
> vimrc
> > at all. That's not where those settings should go and in fact you should
> > rarely need to set these settings. The default works just fine. I
> recommend
> > reading the documentation on what each one does. Online snippets like
> > StackOverflow and great for addressing specific needs but they are not
> good
> > for setting up a vimrc cohesively.
> >
> > Setting 'encoding' etc. in the vimrc _may_ be a good idea >
>
> Thanks for this thorough description of the settings. I will only add
> that `:help encoding` in MacVim has this note:
>
> NOTE: For MacVim and GTK+, it is highly recommended to set 'encoding'
>         to "utf-8".  Although care has been taken to allow different
> values of
>         'encoding', "utf-8" is the natural choice for the environment and
>         avoids unnecessary conversion overhead.
>
> Best,
> Life.
>
> --
> --
> You received this message from the "vim_mac" 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_mac" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to vim_mac+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/vim_mac/u1rv6d%241ba%241%40ciao.gmane.io
> .
>

-- 
-- 
You received this message from the "vim_mac" 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_mac" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_mac+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_mac/CAHTeOx8izFhyqcYVCpQ3NzxTxwWJQqf%3DD5idPdvUG%2Bg2WBznYw%40mail.gmail.com.

Reply via email to