From 1b4f5f92d2587a72a8417dbf544635eec595e032 Mon Sep 17 00:00:00 2001 From: Kevin MacMartin Date: Wed, 5 Jun 2019 00:36:27 -0400 Subject: [PATCH] Disable modelines as these aren't secure (and aren't a great practice imo, but that's more of an opinion) --- vim/config/settings.vim | 1 + 1 file changed, 1 insertion(+) diff --git a/vim/config/settings.vim b/vim/config/settings.vim index fe39dbe..056a9b4 100644 --- a/vim/config/settings.vim +++ b/vim/config/settings.vim @@ -103,6 +103,7 @@ set hlsearch incsearch ignorecase smartcase "configure how search behaves set timeout timeoutlen=500 "how long before timing out for mappings set ttimeout ttimeoutlen=100 "how long before timing out for terminal key codes + set nomodeline "disable the use of file-based modelines as these are insecure "create ~/.vim/swap if necessary, then use as default swap file location if exists('*mkdir') && !isdirectory($HOME.'/.vim/swap')