Skip to content

Options

Linwei edited this page Apr 19, 2018 · 26 revisions

Option Summary

  • g:asyncrun_exit - script will be executed after finished
  • g:asyncrun_bell - non-zero to ring a bell after finished
  • g:asyncrun_mode - 0:async(require vim 7.4.1829) 1:sync 2:shell
  • g:asyncrun_encs - set shell encoding if it's different from &encoding, see encoding
  • g:asyncrun_trim - non-zero to trim the empty lines in the quickfix window.
  • g:asyncrun_auto - event name to trigger QuickFixCmdPre/QuickFixCmdPost, see FAQ
  • g:asyncrun_open - above zero to open quickfix window at given height after command starts
  • g:asyncrun_timer - how many messages should be inserted into quickfix every 100ms interval.
  • g:asyncrun_wrapper - enable to setup a command prefix.

Option Details

g:asyncrun_exit - define a script which will be executed after finished.

  • type: string
  • default: ''

A text of vimscript to run when job finished. eg:

let g:asyncrun_exit = "silent call system('afplay ~/.vim/notify.wav &')"

You can play a sound on Mac OS X when job finished like this.

Clone this wiki locally