From c5d2519cd57a9e3aea8d1ec9a5a48c40038795f4 Mon Sep 17 00:00:00 2001 From: Andy Stewart Date: Thu, 5 Sep 2019 18:36:39 +0100 Subject: [PATCH] Update example maps to use g-based maps --- README.mkd | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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.