News for hackers. Stuff that matters.
Re:Vim/Neovim Arbitrary Code Execution via Modelines by m000 on Tuesday June 04, 2019 @07:18PM (#20100155)
Being fairly unobtrusive, I find modelines convenient for making explicit the proper indenting mode for source files. This is useful in distributed development, where the project doesn't specify a preferred code style. Even if other developers don't use vim, they should be able to understand how they are expected to indent their PR.

Moreover, they're super handy for loading the proper syntax highlighting when working with template engines (e.g. Jinja2) to produce anything other than HTML.

Re:Vim/Neovim Arbitrary Code Execution via Modelines by gbrown_ on Wednesday June 05, 2019 @04:06AM (#20102387)
> Even if other developers don't use vim, they should be able to understand how they are expected to indent their PR.

I'd argue the use of a modeline to convey that is poor.