💻 Software
Is there any way to hook saving in Vim up to commiting in git?
Fresh5 days ago
Mar 15, 20267249 viewsConfidence Score0%
0%
Problem
I am new to the world of Vim, and I want to make it so that every time I save a file it is commited to version control. Is this possible?
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: Is there any way to hook saving in Vim up to commiting in git?
Low Risk
I use a vim autocommand which I place in my .vimrc. The command first does a crude check that we're working in a git directory (by checking existence of a .git directory, either in the current directory or using ), then uses so that only files that …
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix