diff options
| author | typebrook <typebrook@gmail.com> | 2019-03-29 11:20:56 +0800 |
|---|---|---|
| committer | typebrook <typebrook@gmail.com> | 2019-03-29 11:20:56 +0800 |
| commit | 084c508bb1af3617c42c4f92e3e286b499cfa798 (patch) | |
| tree | d5e0ac79f792f24cf690bcc97652c14ebc195eb5 | |
| parent | e767c607cfff3026d135c11815b23d87b31dbe0a (diff) | |
update
| -rw-r--r-- | alias | 1 | ||||
| -rw-r--r-- | tigrc | 6 |
2 files changed, 4 insertions, 3 deletions
| @@ -8,6 +8,7 @@ alias zshrc='vim ~/.zshrc' | |||
| 8 | 8 | ||
| 9 | # vim | 9 | # vim |
| 10 | alias v='vim' | 10 | alias v='vim' |
| 11 | alias vv='vim ~/vimwiki/index.wiki' | ||
| 11 | alias vr='vim -R' | 12 | alias vr='vim -R' |
| 12 | alias amix-update='cd ~/.vim_runtime && git pull --rebase' | 13 | alias amix-update='cd ~/.vim_runtime && git pull --rebase' |
| 13 | 14 | ||
| @@ -75,8 +75,8 @@ bind main pp ?git push | |||
| 75 | bind main pP ?git push -u %(remote) %(branch):%(branch) | 75 | bind main pP ?git push -u %(remote) %(branch):%(branch) |
| 76 | 76 | ||
| 77 | # reset/rebase/revert | 77 | # reset/rebase/revert |
| 78 | bind main u ?git reset %(commit) --soft | 78 | bind main u ?git reset %(commit) |
| 79 | bind main U ?sh -c "git stash push -m 'deprecated from reset' && git reset %(commit) --hard" | 79 | bind main U ?sh -c "git reset %(commit) && git stash push -m 'deprecated from reset'" |
| 80 | bind main <C-r> !?git rebase -i %(commit) | 80 | bind main <C-r> !?git rebase -i %(commit) |
| 81 | bind main ! ?git revert %(commit) | 81 | bind main ! ?git revert %(commit) |
| 82 | 82 | ||
| @@ -201,7 +201,7 @@ bind diff <Esc>p :?^diff --(git|cc) | |||
| 201 | 201 | ||
| 202 | # edit tigrc | 202 | # edit tigrc |
| 203 | bind help e >sh -c "vim ~/.tigrc" | 203 | bind help e >sh -c "vim ~/.tigrc" |
| 204 | bind help E :source ~/.tigrc | 204 | bind help R :source ~/.tigrc |
| 205 | 205 | ||
| 206 | #==================== | 206 | #==================== |
| 207 | # color | 207 | # color |