From f8734b4a3a402fbf938c05edbadb71ffe4c4277c Mon Sep 17 00:00:00 2001 From: Fernando Schauenburg Date: Wed, 30 Mar 2016 00:06:55 +0200 Subject: [PATCH] [vim] disable execution of modelines Modelines can be quite annoying or even dangerous, even though the commands that can be executed int them are limited. If the settings from a modeline are actually desired, this can be explicitly enabled on a per-file basis. --- vimrc | 1 + 1 file changed, 1 insertion(+) diff --git a/vimrc b/vimrc index 6edc123..b759a96 100644 --- a/vimrc +++ b/vimrc @@ -23,6 +23,7 @@ set nocompatible set laststatus=2 set lazyredraw set listchars=tab:›\ ,trail:· + set modelines=0 set number set scrolloff=5 set shiftwidth=4