"Keith Kaple" <k...@cisco.com>: > I'm a developer and pretty much do everythig in vim, I was wondering > if a plugin existed which would do the following. > > 1 record my activity daily and append to a vim_blog.datestamp > 2 "activity" would be a simple adding somthing like: > added #lines deleted #lines changed #lines in > /whatever/path/to/file > 3 activity is recorded on :wq but not on just :w > 4 the daily files would be collected in a subdir under .vim > somewhere > > Does this exist today or does anyone have suggestions on approaches?
There is no Vim on the computer I'm using now, so I can't help you very precisely, but I would suggest the following course: 1. Use the BufReadPre autocommand to copy each file before it is edited, and pasting the contents into a temp file (use "tempname()" for that); save the file's real path and the path to the temp copy in a list. The list will look like this: [ ["/path/to/file1.ext", "/tmp/copy/of/file1.ext"], ["/dir/of/file2.ext", "/tmp/copy/of/file2.ext"], ... ] 2. When leaving Vim (hence in the VimLeave autocommand), run through your list and diff all edited files (comparing the current version with the one saved in the temp file) and write the result in your log file. Sorry I can't be more specific. And simpler ways are perhaps possible. Best, Paul -- -- You received this message from the "vim_use" 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_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.