> Are there any common installations of vi/vim that actually honor > modelines anymore? The ones on the Linux distros that I used > stopped doing so as a security measure.
:help modeline says > No other commands than "set" are supported, for security reasons (somebody > might create a Trojan horse text file with modelines). And not all options > can be set. For some options a flag is set, so that when it's used the > |sandbox| is effective. Still, there is always a small risk that a modeline > causes trouble. E.g., when some joker sets 'textwidth' to 5 all your lines > are wrapped unexpectedly. So disable modelines before editing untrusted text. So it seems like they have the security angle covered by default, or at least they intend to? I don't know if modelines are enabled by default in distros, though. If we were to set tabstop=8, I think we'd want to set softtabstop=2 (or 4, depending on the file), so the "tab" key would continue to shift 2 spaces. -Justin _______________________________________________ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform