Disable modelines in temp files
This commit is contained in:
parent
5af58f9da1
commit
2b757e87d5
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user