Hi In :help modeline-version there is an incorrect modeline example:
=== BEGIN QUOTE === If you want to include a ':' in a set command precede it with a '\'. The backslash in front of the ':' will be removed. Example: /* vi:set dir=c\:\tmp: */ ~ This sets the 'dir' option to "c:\tmp". Only a single backslash before the ':' is removed. Thus to include "\:" you have to specify "\\:". === END QUOTE === That modeline does not work. It gives: Error detected while processing modelines: line 1: E520: Not allowed in a modeline: dir=c:\tmp It is forbidden to set option 'dir' in the modeline. So attached patch changes the example to: /* vi:set fillchars=stl\:^,vert\:\|: */ Regards Dominique -- -- 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]. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_dev/CAON-T_iYkv60L7vhtpNirR3xNxOPyjSSWtpcD%2BMB-PMr98cdfg%40mail.gmail.com.
diff --git a/runtime/doc/options.txt b/runtime/doc/options.txt index 2fced5091..55b09eb8b 100644 --- a/runtime/doc/options.txt +++ b/runtime/doc/options.txt @@ -576,9 +576,9 @@ If an error is detected the rest of the line is skipped. If you want to include a ':' in a set command precede it with a '\'. The backslash in front of the ':' will be removed. Example: - /* vi:set dir=c\:\tmp: */ ~ -This sets the 'dir' option to "c:\tmp". Only a single backslash before the -':' is removed. Thus to include "\:" you have to specify "\\:". + /* vi:set fillchars=stl\:^,vert\:\|: */ ~ +This sets the 'fillchars' option to "stl:^,vert:\|". Only a single backslash +before the ':' is removed. Thus to include "\:" you have to specify "\\:". *E992* No other commands than "set" are supported, for security reasons (somebody might create a Trojan horse text file with modelines). And not all options
