aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron LI <aly@aaronly.me>2019-06-21 16:24:25 +0800
committerAaron LI <aly@aaronly.me>2019-06-21 16:24:25 +0800
commit5731aa892d465cb66cac7e44e0270d0ff12be8d2 (patch)
tree57e2bd49c8c85bc6899eb041f261e65440ee408e
parent5c33336c7523c5b864c9d9be715790e8151ab3ab (diff)
downloaddotfiles-5731aa892d465cb66cac7e44e0270d0ff12be8d2.tar.bz2
vim: Disable modelines
-rw-r--r--_vim/vimrc4
1 files changed, 4 insertions, 0 deletions
diff --git a/_vim/vimrc b/_vim/vimrc
index 3b87fb9..7fd42ae 100644
--- a/_vim/vimrc
+++ b/_vim/vimrc
@@ -19,6 +19,10 @@ filetype indent on
" Set to auto read when a file is changed from the outside
set autoread
+" Disable modelines for better security
+set modelines=0
+set nomodeline
+
" With a map leader it's possible to do extra key combinations
" like <leader>w saves the current file
let mapleader = ","