I use vim to perform slow operations after saving the file, these operations allow my vim to get stuck, so I wonder if there is some kind of asynchronization method to make these operations run in the background?
Demo:
autocmd BufWritePost *.js call DoSomeTing() function! DoSomeThing() " some operations really slow endfunction
Ethan zhang
source share