Re:Vim/Neovim Arbitrary Code Execution via Modelines
by eikenberry on Tuesday June 04, 2019 @05:22PM
(#20099385)
I've found them useful for settings the filetype when you don't have the mime-suffix or other easy method to identify it. But that's about it.
[ Parent
| on HN ]
Re:Vim/Neovim Arbitrary Code Execution via Modelines
by gbrown_ on Tuesday June 04, 2019 @05:27PM
(#20099426)
Presumably that's for something only you work on? Do others not find it confusing as to what that line is doing in the file?
Re:Vim/Neovim Arbitrary Code Execution via Modelines
by anowlcalledjosh on Tuesday June 04, 2019 @05:54PM
(#20099638)
Presumably it's no more confusing than, say, a shebang is for Windows users.
Re:Vim/Neovim Arbitrary Code Execution via Modelines
by gbrown_ on Tuesday June 04, 2019 @06:16PM
(#20099783)
An interpreter directive is far more common than a piece of configuration specific to an editor. It also serves a practical purpose on *nix style systems whereas editor configuration is a matter of preference.
Re:Vim/Neovim Arbitrary Code Execution via Modelines
by eikenberry on Tuesday June 04, 2019 @07:28PM
(#20100191)
Normal use case, yes, this is only stuff I work on. When collaborating you must assume heterogeneous development environments which make this kind of thing useless.