-
Notifications
You must be signed in to change notification settings - Fork 115
Options
Linwei edited this page Apr 19, 2018
·
26 revisions
- 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.
- 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.
- type:
integer
- default:
0
available modes:
- 0: start job asynchronously. This is default mode but will fall back to mode 1 when using a old vim before version 8.
- 1: start job with
make
system in vim. - 2: start job by using
!
command. - 3: start job in the background, no output to quickfix (+python or +python3 is required on windows).
- 4: start job in a new terminal window on windows.