aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-06-09 00:12:46 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-06-09 00:12:46 +1200
commitdc7ece895b75c0479e05a0e552628217a287e3b0 (patch)
treed48e6631692a4225102adead2627f1c691ca2c56
parentMove C resets further up (diff)
downloaddotfiles-dc7ece895b75c0479e05a0e552628217a287e3b0.tar.gz
dotfiles-dc7ece895b75c0479e05a0e552628217a287e3b0.zip
Develop commentary of 'modeline' awfulness
-rw-r--r--vim/vimrc10
1 files changed, 9 insertions, 1 deletions
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