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 -- -- 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+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.