Skip to content

Commit 0f763cb

Browse files
authored
Update .vimrc
Disable modelines as a security precaution
1 parent 5ebb73e commit 0f763cb

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

.vimrc

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -88,17 +88,15 @@ set ttymouse=xterm2
8888
" Add the g flag to search/replace by default.
8989
set gdefault
9090

91-
" Look for embedded modelines at the top of the file.
92-
set modeline
91+
" Disable modelines as a security precaution
92+
set modelines=0
93+
set nomodeline
9394

9495
" Ignore whitespace in vimdiff.
9596
if &diff
9697
set diffopt+=iwhite
9798
endif
9899

99-
" Only look at this number of lines for modeline.
100-
set modelines=10
101-
102100
" Enable filetype detection.
103101
filetype on
104102

0 commit comments

Comments
 (0)