https://github.com/johngrib/vim-git-msg-wheel
Displays recent commit messages as an auto-complete list.
https://github.com/johngrib/vim-git-msg-wheel
Last synced: 6 months ago
JSON representation
Displays recent commit messages as an auto-complete list.
- Host: GitHub
- URL: https://github.com/johngrib/vim-git-msg-wheel
- Owner: johngrib
- License: mit
- Created: 2018-10-23T14:25:48.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-10-24T01:02:34.000Z (about 7 years ago)
- Last Synced: 2025-03-06T02:41:23.562Z (10 months ago)
- Language: Vim script
- Size: 697 KB
- Stars: 51
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-list - vim-git-msg-wheel - complete list. | johngrib | 52 | (Vim script)
README
# vim-git-msg-wheel
Show recent git commit messages and support line autocompletion.
[English](README.md) [한국어](README_kr.md)

# Why should I use this?
It would not be a good git usage habit to reuse commit messages.
Sometimes, however, I see the old commit message and try to recycle it.
* View recent commit messages as a list.
* You can autocomplete and modify old commit messages and write new commit messages.
# Installation
## .gitconfig
Open .gitconfig, and check `editor` is specified as the vim you are using.
```
[core]
editor = /usr/local/bin/vim
```
The easiest way to find out what vim you are using is to check with `which vim`.
```sh
$ which vim
```
Please change if the path of .gitconfig.core.editor differs from the output of `which vim` command.
## VimPlug
Place this in your .vimrc:
```viml
Plug 'johngrib/vim-git-msg-wheel'
```
Then run the following in Vim:
```
:source %
```
```
:PlugInstall
```
# Configuraion
## define auto complete key
* default value is ``
```viml
" use ctrl+a to show commit message auto complete list
let g:git_msg_wheel_key = ''
```
## number of commit messages to import
* default value is `50`
```viml
let g:git_msg_wheel_length = 100
```
## show/hide old commit messages in comment
* default value is `1`
```viml
let g:git_msg_wheel_list_show = 0 " hide list
```