If there are literals in the script source which are not pure 7-bit US-ASCII, :scriptencoding defines how they are interpreted. Without it, it depends on what 'encoding' was when the script was sourced (i.e. loaded in order to be executed). With it, the :scriptencoding argument applies from the :scriptencoding statement to the end of the script. Changing 'encoding' other than near the start of the vimrc is strongly discouraged because it is loaded with pitfalls and of ways to shoot oneself in the foot. Even the vimrc should have a :scriptencoding statement unless it is written from top to bottom in 7-bit US-ASCII (assuming we're not on an EBCDIC platform, which would be another can of worms).
Best regards, Tony. -- -- You received this message from the "vim_dev" 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_dev" 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.
