Asynchronous diffs in Vim.

This commit is contained in:
Andy Stewart
2016-04-25 15:40:49 +01:00
parent a13478c7d6
commit e607a997ce
7 changed files with 119 additions and 61 deletions

View File

@@ -5,7 +5,8 @@ A Vim plugin which shows a git diff in the 'gutter' (sign column). It shows whe
Features:
* Shows signs for added, modified, and removed lines.
* Neovim: runs the diffs asynchronously.
* Runs the diffs asynchronously in Vim (7.4.1791+) and NeoVim.
- MacVim in GUI mode runs synchronously because it doesn't support Vim's async operations yet ([macvim#272](/macvim-dev/macvim/issues/272)).
* Ensures signs are always as up to date as possible (but without running more than necessary).
* Quick jumping between blocks of changed lines ("hunks").
* Stage/undo/preview individual hunks.
@@ -202,7 +203,7 @@ You can customise:
* Whether or not line highlighting is on initially (defaults to off)
* Whether or not vim-gitgutter runs in "realtime" (defaults to yes)
* Whether or not vim-gitgutter runs eagerly (defaults to yes)
* Whether or not vim-gitgutter runs asynchronously in NeoVim (defaults to yes)
* Whether or not vim-gitgutter runs asynchronously (defaults to yes)
Please note that vim-gitgutter won't override any colours or highlights you've set in your colorscheme.
@@ -317,7 +318,7 @@ Add `let g:gitgutter_highlight_lines = 1` to your `~/.vimrc`.
#### To turn off asynchronous updates
By default diffs are run asynchronously in NeoVim. To run diffs synchronously instead:
By default diffs are run asynchronously. To run diffs synchronously instead:
```viml
let g:gitgutter_async = 0