Thursday, December 10, 2020

Setting file encoding in a modeline

It seems to me that a modeline would be a convenient place to set the
encoding used for a file. However, while it does set 'fenc'
accordingly, the file is not loaded and displayed according to this
setting.

Bram said reading is tried with each encoding in fencs until one
succeeds. Why not reload the file with the correct encoding once a
modeline with a fenc setting has been read?

-Albert.

--
--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/CALPW7mRT2xjrAuYCvSCPxB%3DDb-xTRwj1uWu91QpEDasmUzYgVQ%40mail.gmail.com.

No comments: