diff --git a/README.mkd b/README.mkd index 621e86c..7c4499d 100644 --- a/README.mkd +++ b/README.mkd @@ -209,17 +209,17 @@ See the FAQ if you want to unstage staged changes. The `.` command will work with both these if you install [repeat.vim](https://github.com/tpope/vim-repeat). -To set your own mappings for these, for example if you prefer the mnemonics hunk-add and hunk-revert: +To set your own mappings for these, for example if you prefer `g`-based maps: ```viml -nmap ha (GitGutterStageHunk) -nmap hr (GitGutterUndoHunk) +nmap ghs (GitGutterStageHunk) +nmap ghu (GitGutterUndoHunk) ``` And you can preview a hunk's changes with `hp`. The location of the preview window is configured with `g:gitgutter_preview_win_location` (default `'bo'`). You can of course change this mapping, e.g: ```viml -nmap hv (GitGutterPreviewHunk) +nmap ghp (GitGutterPreviewHunk) ``` A hunk text object is provided which works in visual and operator-pending modes.