Fix warnings emitted by Apple LLVM version 7.3.0 (clang-703.0.29)
[tig.git] / contrib / vim.tigrc
bloba3c2e14004a60986eb601608708a6ef5edaef9ef
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
14 bind generic g  none
15 bind generic gg move-first-line
16 bind generic gj next
17 bind generic gk previous
18 bind generic gp parent
19 bind generic gP back
20 bind generic gn view-next
22 bind main    G  none
23 bind generic G  move-last-line
25 bind generic <C-f> move-page-down
26 bind generic <C-b> move-page-up
28 bind generic v  none
29 bind generic vm view-main
30 bind generic vd view-diff
31 bind generic vl view-log
32 bind generic vt view-tree
33 bind generic vb view-blob
34 bind generic vx view-blame
35 bind generic vr view-refs
36 bind generic vs view-status
37 bind generic vu view-stage
38 bind generic vy view-stash
39 bind generic vg view-grep
40 bind generic vp view-pager
41 bind generic vh view-help
43 bind generic o  none
44 bind generic oo :toggle sort-order
45 bind generic os :toggle sort-field
46 bind generic on :toggle line-number
47 bind generic od :toggle date
48 bind generic oa :toggle author
49 bind generic og :toggle line-graphics
50 bind generic of :toggle file-name
51 bind generic op :toggle ignore-space
52 bind generic oi :toggle id
53 bind generic ot :toggle commit-title-overflow
54 bind generic oF :toggle file-filter
55 bind generic or :toggle commit-title-refs
57 bind generic @  none
58 bind generic @j :/^@@
59 bind generic @k :?^@@
60 bind generic @- :toggle diff-context -1
61 bind generic @+ :toggle diff-context +1
63 bind status  u  none
64 bind stage   u  none
65 bind generic uu status-update
66 bind generic ur status-revert
67 bind generic um status-merge
68 bind generic ul stage-update-line
69 bind generic us stage-split-chunk
71 bind generic c  none
72 bind generic cc !git commit
73 bind generic ca !?@git commit --amend --no-edit
75 bind generic K view-help
76 bind generic <C-w><C-w> view-next