A Vim plugin for using single line comments as commit messages.
It is intended to encourage regular commits.
- Add an @ after the # in a comment.
- This indicates you wish to use this comment as a commit.
- Unstaged changes in the current file will be staged and committed using the comment as the commit message.
# This comment is ignored
#@ This comment is my commit message
Upon :w or :wq, the comment is modified to become a normal comment, the file is staged and committed.
# This comment is ignored
# This comment is my commit message
Currently intended for use with Python files, with single line comments.
If you are using Vim 8+:
git clone https://github.com/benjaminr/committy.git ~/.vim/pack/vendor/start/committy