Add vim settings to disable modeline

This commit is contained in:
Michael McMahon 2019-06-07 22:18:45 -04:00 committed by Arminius
parent f885bbf08c
commit a6488d1bd7
1 changed files with 12 additions and 0 deletions

View File

@ -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
--------