1 # Vim-style keybindings for Tig
3 # To use these keybindings copy the file to your HOME directory and include
4 # it from your ~/.tigrc file:
6 # $ cp contrib/vim.tigrc ~/.tigrc.vim
7 # $ echo "source ~/.tigrc.vim" >> ~/.tigrc
9 bind generic h scroll-left
10 bind generic j move-down
11 bind generic k move-up
12 bind generic l scroll-right
15 bind generic gg move-first-line
17 bind generic gk previous
18 bind generic gp parent
20 bind generic gn view-next
23 bind generic G move-last-line
26 bind generic vm view-main
27 bind generic vd view-diff
28 bind generic vl view-log
29 bind generic vt view-tree
30 bind generic vb view-blob
31 bind generic vx view-blame
32 bind generic vr view-refs
33 bind generic vs view-status
34 bind generic vu view-stage
35 bind generic vy view-stash
36 bind generic vg view-grep
37 bind generic vp view-pager
38 bind generic vh view-help
41 bind generic oo :toggle sort-order
42 bind generic os :toggle sort-field
43 bind generic on :toggle line-number
44 bind generic od :toggle date
45 bind generic oa :toggle author
46 bind generic og :toggle line-graphics
47 bind generic of :toggle file-name
48 bind generic op :toggle ignore-space
49 bind generic oi :toggle id
50 bind generic ot :toggle commit-title-overflow
51 bind generic oF :toggle file-filter
52 bind generic or :toggle commit-title-refs
57 bind generic @- :toggle diff-context -1
58 bind generic @+ :toggle diff-context +1
62 bind generic uu status-update
63 bind generic ur status-revert
64 bind generic um status-merge
65 bind generic ul stage-update-line
66 bind generic us stage-split-chunk
69 bind generic cc !git commit
70 bind generic ca !?@git commit --amend --no-edit
72 bind generic K view-help
73 bind generic <C-w><C-w> view-next