diff --git a/README.mkd b/README.mkd index 7b93b01..1839660 100644 --- a/README.mkd +++ b/README.mkd @@ -168,10 +168,10 @@ When you jump between hunks, a message like `Hunk 4 of 11` is shown on the comma let g:gitgutter_show_msg_on_hunk_jumping = 0 ``` -You can load all your hunks into the quickfix list with `:GitGutterQuickFix`. Note this ignores any unsaved changes in your buffers. If the option `g:gitgutter_use_location_list` is set, this command will load hunks into the current window's location list instead. Use `:copen` (or `:lopen`) to open the quickfix / location list or add a map like this: +You can load all your hunks into the quickfix list with `:GitGutterQuickFix`. Note this ignores any unsaved changes in your buffers. If the option `g:gitgutter_use_location_list` is set, this command will load hunks into the current window's location list instead. Use `:copen` (or `:lopen`) to open the quickfix / location list or add a custom command like this: ```viml -nmap gq :GitGutterQuickFix\|copen +command! Gqf GitGutterQuickFix | copen ``` You can stage or undo an individual hunk when your cursor is in it: diff --git a/doc/gitgutter.txt b/doc/gitgutter.txt index e8e507c..1a9cf92 100644 --- a/doc/gitgutter.txt +++ b/doc/gitgutter.txt @@ -149,9 +149,9 @@ Commands for jumping between hunks:~ populate the location list of the current window instead. Use |:copen| (or |:lopen|) to open a buffer containing the search results in linked form; or add a - map like this: + custom command like this: > - nmap gq :GitGutterQuickFix\|copen + command! Gqf GitGutterQuickFix | copen <