From dc7ece895b75c0479e05a0e552628217a287e3b0 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Sun, 9 Jun 2019 00:12:46 +1200 Subject: Develop commentary of 'modeline' awfulness --- vim/vimrc | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/vim/vimrc b/vim/vimrc index 13d74520..81a0add5 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -527,7 +527,15 @@ set listchars+=nbsp:+ " Non-breaking spaces " set showmatch matchtime=3 -" Don't allow setting options via buffer content +" Don't let your editor's options be configured by content in arbitrary files! +" Down with modelines! Purge them from your files! Écrasez l'infâme! +" +" I think that modelines are Vim's worst misfeature, and that 'nomodeline' +" should be the default. It's enabled pretty bad security vulnerabilities +" over the years, and it's a lot more effective to use filetype detection, +" other automatic command hooks, or systems like .editorconfig to set +" variables specifically for a buffer or project. +" set nomodeline " Treat numbers with a leading zero as decimal, not octal -- cgit v1.2.3