mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-12 13:23:52 -05:00
Disable modelines in temp files
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user