skywind3000 / asyncrun.vim

:rocket: Run Async Shell Commands in Vim 8.0 / NeoVim and Output to the Quickfix Window !!
https://www.vim.org/scripts/script.php?script_id=5431
MIT License
1.84k stars 109 forks source link

Use <nomodeline> in :doautocmd #259

Closed tomtomjhj closed 1 year ago

tomtomjhj commented 1 year ago

No need to apply modeline after AsyncRun events.

skywind3000 commented 1 year ago

What is the drawback if <nomodeline> is not presented ?

tomtomjhj commented 1 year ago

It triggers modeline evaluation, which can be annoying in some cases. For example, if I was editing a file with a modeline containing foldlevel=0, everything will be folded when an asyncrun job finishes.

skywind3000 commented 1 year ago

That makes sense.