bexec
bexec copied to clipboard
Choose when BexecLive updates
I am currently using vim-quickrun for these sorts of things, but it seems you might be onto something here with regards to simplicity. I might switch over to this plugin in the future!
One thing I noticed was that the BexecLive command seems to run the buffer on every change. I thing it would make sense to be able to customize which event should trigger the evals. I am assuming that you are currently using InsertCharPre or TextChanged or TextChangedI. I think it would be convenient to allow the user to specify which event that triggers the evaluation, so that one for instance could use the CursorHold[I] or BufferWrite to make it update slightly more seldom.
Hi Karl!
I didn't write the BexecLive functionality myself, but it looks like you're right:
au CursorHold,CursorHoldI,InsertLeave * call bexec#AutoSave()
Making that customizable sounds like a good idea. I'll look into that.
I think something like the following could work:
for l:event in get(g:, 'option_name_events', [default list])
execute 'au' l:event '* call bexec#AutoSave()'
endfor