diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2019-06-09 00:12:46 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2019-06-09 00:12:46 +1200 |
commit | dc7ece895b75c0479e05a0e552628217a287e3b0 (patch) | |
tree | d48e6631692a4225102adead2627f1c691ca2c56 | |
parent | Move C resets further up (diff) | |
download | dotfiles-dc7ece895b75c0479e05a0e552628217a287e3b0.tar.gz dotfiles-dc7ece895b75c0479e05a0e552628217a287e3b0.zip |
Develop commentary of 'modeline' awfulness
-rw-r--r-- | vim/vimrc | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -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 |