1

While searching for autocommands event I noticed that there are no SourcePost event. This is strange, because nearly all of other event have a Post version of it (e.g. FileAppendPost, BufWritePost, ... ).

Do you know the reason behind this ?

  • It was probably not needed when creating it – Christian Brabandt Aug 27 '15 at 8:15
  • Maybe because you can exit Vim by sourcing? – muru Aug 27 '15 at 8:44
  • @muru: what do you mean ? – nobe4 Aug 27 '15 at 8:53
  • 1
    @Nobe4 if I have wqa! in a file and I source it, Vim will quit, right? With most other events, it's quite unlikely that Vim will exit unless there's a fatal error. So there's no way to be reasonably sure if Vim can get commands to run after sourcing. – muru Aug 27 '15 at 9:01
  • @muru: OK I see your point, a summary could be that SourcePost was not provided because the sourcing could quit Vim? Do you know if there is a method to do the event "catching" manually ? e.g. execute a methode after the sourcing of a file (if vim is still open obviously) – nobe4 Aug 27 '15 at 9:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.