0

I'd like to accomplish the following goals:

  1. Whenever I perform a writing file action in Vim, like :w, I'd like to add the snapshot of that file to the staging area and commit it to the local repo, just like I manually execute the commands git add file.name && git commit -m 'some msg'.

  2. The local repo is not a problem, I'll initiate it manully, or better this vimscript will initiate the repo automatically for me when necessary.

How can I do this? Please advice, thanks!

dtip
  • 73
  • 5
pbkdyy
  • 3
  • 1

0 Answers0