VIM: fopen and fclose hooks?
- Let me explain a bit more...
What I am trying to do is to make vim into an *special file* editing program with revision control.
I have added several elements, which if I can complete I will provide a diff patch for, that are working fine.
At this stage I am trying to complete an integration with RCS.
Yes, I know about the scripted add-on...but that is not without issues that will not exist if things are built into the actual binary.
I have the routine that checks out the target file working fine.
Now I need a hook to check the file in when it is fclosed.
I see potential in the main.c loop in or near the exit fn, but would like to know where it is recommended to place such hooks.
Any suggestions would be much appreciated.
On Tuesday, March 26, 2013 11:51:08 AM UTC-7, Christopher Jay Manders wrote:
> I am in the process of adding some hooks to the VIM code for an internal project and am having problems locating the equivalent to the mch_open for the fclose of the filehandle used during a vim session.
> Is there a specific spot where mch_close is located?
> I note that it is (at least) no longer located in fileio.c.
> I found where to place my hook for the mch_open in fileio.c, but now I need one to trigger when the file is written.
> Any pointers would be much appreciated.
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
You received this message because you are subscribed to the Google Groups "vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_dev+unsubscribe@....
For more options, visit https://groups.google.com/groups/opt_out.