Disable modelines in temp files

This commit is contained in:
Tim Pope 2019-08-02 14:42:24 -04:00
parent 5af58f9da1
commit 2b757e87d5

View File

@ -2071,6 +2071,7 @@ function! s:SetupTemp(file) abort
setlocal foldmarker=<<<<<<<,>>>>>>>
setlocal bufhidden=delete nobuflisted
setlocal buftype=nowrite
setlocal nomodeline
if empty(mapcheck('q', 'n'))
nnoremap <buffer> <silent> q :<C-U>bdelete<CR>
endif