3 # vim-style keybindings
 
   4 # Copied from https://github.com/jonas/tig/blob/master/contrib/vim.tigrc
 
   5 bind generic h scroll-left
 
   6 bind generic j move-down
 
   8 bind generic l scroll-right
 
  11 bind generic gg move-first-line
 
  13 bind generic gk previous
 
  14 bind generic gp parent
 
  16 bind generic gn view-next
 
  17 bind generic gh view-help
 
  19 bind main    G move-last-line
 
  20 bind generic G move-last-line
 
  22 bind generic <C-f> move-page-down
 
  23 bind generic <C-b> move-page-up
 
  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
 
  61 bind generic uu status-update
 
  62 bind generic ur status-revert
 
  63 bind generic um status-merge
 
  64 bind generic ul stage-update-line
 
  65 bind generic up stage-update-part
 
  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 <C-w><C-w> view-next