diff options
-rw-r--r-- | tigrc | 8 | ||||
-rw-r--r-- | vimrc | 3 |
2 files changed, 7 insertions, 4 deletions
@@ -16,7 +16,7 @@ set line-graphics = utf-8 | |||
16 | set refresh-mode = after-command | 16 | set refresh-mode = after-command |
17 | 17 | ||
18 | # main view | 18 | # main view |
19 | bind main gG :toggle commit-title-graph | 19 | bind main ` :toggle commit-title-graph |
20 | bind main G move-last-line | 20 | bind main G move-last-line |
21 | bind main c @sh -c "git branch --points-at=%(commit) | \ | 21 | bind main c @sh -c "git branch --points-at=%(commit) | \ |
22 | sed -n '/^*/ {n;p}' | \ | 22 | sed -n '/^*/ {n;p}' | \ |
@@ -24,6 +24,7 @@ bind main c @sh -c "git branch --points-at=%(commit) | \ | |||
24 | head -1 | \ | 24 | head -1 | \ |
25 | xargs git checkout" | 25 | xargs git checkout" |
26 | bind main Tn @git tag "%(prompt Enter tag name: )" %(commit) | 26 | bind main Tn @git tag "%(prompt Enter tag name: )" %(commit) |
27 | bind main TN !git tag "%(prompt Enter tag name: )" %(commit) -a | ||
27 | bind main Td @git tag -d "%(prompt Delete tag: )" | 28 | bind main Td @git tag -d "%(prompt Delete tag: )" |
28 | bind main Tp ?git push --tags | 29 | bind main Tp ?git push --tags |
29 | bind main gdt @git tag -d %(tag) | 30 | bind main gdt @git tag -d %(tag) |
@@ -54,12 +55,15 @@ set blame-view-line-number = yes,interval=5 | |||
54 | # status view | 55 | # status view |
55 | bind status s ?git stash | 56 | bind status s ?git stash |
56 | bind status S @git stash save "%(prompt Enter stash name: )" | 57 | bind status S @git stash save "%(prompt Enter stash name: )" |
58 | bind status gs !git stash save -p "%(prompt Enter stash name: )" | ||
57 | bind status p !git checkout --patch -- %(file) | 59 | bind status p !git checkout --patch -- %(file) |
58 | bind status D ?rm %(file) | 60 | bind status D ?rm %(file) |
59 | bind status a ?git commit --amend | 61 | bind status a ?git commit --amend |
60 | bind status c ?git commit | 62 | bind status c @git commit -m "%(prompt Enter commit message: )" |
63 | bind status C !git commit | ||
61 | bind status j :/^[MADRU?] | 64 | bind status j :/^[MADRU?] |
62 | bind status k :?^[MADRU?] | 65 | bind status k :?^[MADRU?] |
66 | bind status Tu @git update-index --assume-unchanged "%(file)" | ||
63 | 67 | ||
64 | # stash view | 68 | # stash view |
65 | bind stash D ?git stash drop %(stash) | 69 | bind stash D ?git stash drop %(stash) |
@@ -10,12 +10,11 @@ set nosol | |||
10 | set ss=1 | 10 | set ss=1 |
11 | set siso=999 | 11 | set siso=999 |
12 | let g:vim_markdown_conceal = 0 | 12 | let g:vim_markdown_conceal = 0 |
13 | set clipboard=unnamedplus | ||
14 | 13 | ||
15 | nmap <c-c> :q<cr> | 14 | nmap <c-c> :q<cr> |
16 | nnoremap <leader>t :.w !bash<cr> | 15 | nnoremap <leader>t :.w !bash<cr> |
17 | nnoremap <leader>tt :TableFormat<cr> | 16 | nnoremap <leader>tt :TableFormat<cr> |
18 | nnoremap <leader>u :set clipboard=autoselect | 17 | nnoremap <leader>u :set clipboard=unnamedplus<cr> |
19 | 18 | ||
20 | let g:vim_markdown_folding_disabled = 1 | 19 | let g:vim_markdown_folding_disabled = 1 |
21 | 20 | ||