On Tuesday, December 2, 2014 12:32:28 AM UTC, Gary Johnson wrote: > On 2014-12-01, jy yap wrote: > > Hi, > > > > I have a small project that looks at logging the names of the > > files that have been edited by vi. > > > > Can someone kindly point out which part of the code handle files? > > This can be done with a plugin. You don't need to modify Vim's > source code. > > If you want to do this for all users, put the following in a file in > the $VIM/vimfiles/plugin directory. You could name the file > editlog.vim, for example. > > au BufWrite * !echo <afile> >> /path/to/log/file > > See > > :help 40.3 > :help 41.11 > > If that doesn't meet your needs, let us know more precisely what you > need and we can at least point you to the appropriate section of the > manual. > > Regards, > Gary
Thank you Gary. I wish to customize the log messages to capture other information in addition to filenames. Could you suggest where should start to look at? cheers =) -- -- 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 [email protected]. For more options, visit https://groups.google.com/d/optout.
