When a file in git repo is modified pretty much, It is helpful to commit it to git autoly. This plugin is launched for this purpose, just plug and use, zero config.
-
vim-plug
Plug 'authendic/vim-template', {'branch': 'release'}
-
Zero Config, plug and use
By default, file type like
*.mdand*.vimwill be autocommited , since the file must be in git repo -
disabling autocommit
let g:git_auto_commit_disable = 1
-
auto commit file types
let g:git_auto_commit_file_types = ['*.md', '*.vim']
-
auto commit message
let g:git_auto_commit_message = 'auto commit'
-
threshod for control commit frequency
" 5 row added, trigger a commit let g:git_auto_commit_modify_lines_threshold = 5