Vim: disable autocmd BufRead (modeline)
问题 From this answer I executed: :set modeline | doautocmd BufRead Since then, I cannot disable the BufRead . I can open a file and unset the modeline : :set nomodeline :e! :wq But when I reopen the same file, its modeline is again auto executed. I tried noautocmd - autocmd-remove: :noautocmd w BufRead :noautocmd BufRead :exe "au! BufRead *" :au! BufRead Note I want to disable all auto executed because of BufRead , not just a single event set by it like here explained: https://stackoverflow.com/a