Skip to content

chuwy/vim-precocious

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 

Vim-precocious

Vim-precocious allows you to autocommit files when saving file on predefined circumstances (path of full filename, to be exactly). If you don't want to commit, just leave prompt empty.

Requirements

  • Vim should be compilled with +python support.
  • You sholud have python-git (or libgit2) installed.

Usage

Set g:Precocious_path_parts settings. It should be a list of filename patterns on which commit should done. For example:

" Commit all rst files and all files in project direcory
let g:Precocious_path_parts = ['*.rst', '/home/user/project/*']

It uses python's fnmatch module to check pattern. Don't forget about asterisk in absolute path: /etc/file.txt and etc/*.txt shouldn't match.

About

vim git autocommit

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published