Add commands to enable/disable/toggle GitGutter per buffer.

This commit is contained in:
Andy Stewart
2019-01-08 12:47:10 +00:00
parent b11d74ca8f
commit 2dce8e032b
4 changed files with 33 additions and 1 deletions

View File

@@ -17,7 +17,7 @@ Features:
* Handles line endings correctly, even with repos that do CRLF conversion.
* Optional line highlighting.
* Fully customisable (signs, sign column, line highlights, mappings, extra git-diff arguments, etc).
* Can be toggled on/off.
* Can be toggled on/off, globally or per buffer.
* Preserves signs from other plugins.
* Easy to integrate diff stats into status line; built-in integration with [vim-airline](https://github.com/bling/vim-airline/).
* Works with fish shell (in addition to the usual shells).
@@ -119,6 +119,12 @@ You can explicitly turn vim-gitgutter off and on (defaults to on):
* turn on with `:GitGutterEnable`
* toggle with `:GitGutterToggle`.
To toggle vim-gitgutter per buffer:
* turn off with `:GitGutterBufferDisable`
* turn on with `:GitGutterBufferEnable`
* toggle with `:GitGutterBufferToggle`
You can turn the signs on and off (defaults to on):
* turn on with `:GitGutterSignsEnable`