From 68de17180ef3fd9233ab45792a963aab42ed8103 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Sat, 28 Oct 2017 22:20:58 +1300 Subject: Move 'modeline' .vimrc setting to file.vim subfile --- vim/config/file.vim | 4 ++++ vim/vimrc | 4 ---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/vim/config/file.vim b/vim/config/file.vim index 417f7ca8..0e2f2e96 100644 --- a/vim/config/file.vim +++ b/vim/config/file.vim @@ -20,6 +20,10 @@ set autoread " argument list; this is particularly helpful for me as I don't use 'hidden' set autowrite +" Don't use modelines at all, they're apparently potential security problems +" and I've never used them anyway +set nomodeline + " I really like ZZ and ZQ, so I wrote a couple more mappings; ZW forces a " write of the current buffer, but doesn't quit, and ZA forces a write of all " buffers but doesn't quit diff --git a/vim/vimrc b/vim/vimrc index 30eb9502..19877316 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -32,10 +32,6 @@ nnoremap J mzJ`z " in the current session set backspace=indent,eol,start -" Don't use modelines at all, they're apparently potential security problems -" and I've never used them anyway -set nomodeline - " Don't assume a number with a leading zero is octal; it's far more likely a " zero-padded decimal, so increment and decrement with ^A and ^X on that basis set nrformats-=octal -- cgit v1.2.3