Skip to content

Commit

Permalink
git: make tig behave more like Vi
Browse files Browse the repository at this point in the history
Remap keys so that tig behaves more like Vi.
This changes navigation bindings.

Signed-off-by: Liam Beguin <[email protected]>
  • Loading branch information
liambeguin committed Jun 14, 2020
1 parent dbde162 commit 2cb0a72
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tigrc
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,17 @@ set line-graphics = utf-8
set mailmap = yes
#set show-changes = no
set refresh-mode = auto
set mouse = yes

bind status + !git commit --amend --verbose
# bind generic 9 !@sh -c "echo foo | xclip -selection c"

bind generic g none
bind generic l none
bind generic h none
bind generic l scroll-right
bind generic h scroll-left
bind generic gg move-first-line

bind generic ? none
bind generic ? view-help

0 comments on commit 2cb0a72

Please sign in to comment.