Enable . command to work with staging/reverting hunks.

This commit is contained in:
Andy Stewart
2015-01-14 10:40:43 +01:00
parent 25257c44e7
commit 6b8e908cc9
2 changed files with 6 additions and 0 deletions

View File

@@ -109,6 +109,8 @@ You can stage or revert an individual hunk when your cursor is in it:
* stage the hunk with `<Leader>hs` or
* revert it with `<Leader>hr`.
The `.` command will work with both these if you install [https://github.com/tpope/vim-repeat](repeat.vim).
To set your own mappings for these, for example if you prefer the mnemonics hunk-add and hunk-undo:
```viml