From a6488d1bd78fbd80f159bb1ca39d26af354cb722 Mon Sep 17 00:00:00 2001 From: Michael McMahon Date: Fri, 7 Jun 2019 22:18:45 -0400 Subject: [PATCH] Add vim settings to disable modeline --- doc/2019-06-04_ace-vim-neovim.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/doc/2019-06-04_ace-vim-neovim.md b/doc/2019-06-04_ace-vim-neovim.md index 563d98a..261c51c 100644 --- a/doc/2019-06-04_ace-vim-neovim.md +++ b/doc/2019-06-04_ace-vim-neovim.md @@ -123,6 +123,18 @@ nomodeline`), to use the [securemodelines](https://github.com/ciaranm/securemode plugin, or to disable `modelineexpr` (since patch 8.1.1366, Vim-only) to disallow expressions in modelines. +Check if you have modelines enabled by opening vim and entering + +```:set modeline?``` + +If vim returns ```nomodeline```, you are not vulnerable. If you are vulnerable +or want to ensure your security with this issue, add these lines to your vimrc: + +``` +set modelines=0 +set nomodeline +``` + Timeline --------