diff options
-rw-r--r-- | alias | 1 | ||||
-rw-r--r-- | tigrc | 2 | ||||
-rw-r--r-- | vimrc | 6 |
3 files changed, 9 insertions, 0 deletions
@@ -11,6 +11,7 @@ alias v='vim' | |||
11 | alias vv='vim ~/vimwiki/index.wiki' | 11 | alias vv='vim ~/vimwiki/index.wiki' |
12 | alias vr='vim -R' | 12 | alias vr='vim -R' |
13 | alias cdv='cd ~/.vim_runtime' | 13 | alias cdv='cd ~/.vim_runtime' |
14 | alias cdw='cd ~/vimwiki' | ||
14 | 15 | ||
15 | # shell | 16 | # shell |
16 | alias ll='ls -alh' | 17 | alias ll='ls -alh' |
@@ -86,6 +86,8 @@ bind main pp ?git push | |||
86 | bind main pP ?git push -u %(remote) %(branch):%(branch) | 86 | bind main pP ?git push -u %(remote) %(branch):%(branch) |
87 | bind main pr ?git push -u '%(prompt Which remote? )' %(branch):%(branch) | 87 | bind main pr ?git push -u '%(prompt Which remote? )' %(branch):%(branch) |
88 | bind main pd ?git push %(remote) :%(branch) | 88 | bind main pd ?git push %(remote) :%(branch) |
89 | bind main pu ?git pull | ||
90 | bind main pU ?git pull '%(prompt Which remote? )' %(branch):%(branch) | ||
89 | 91 | ||
90 | # reset/rebase/revert | 92 | # reset/rebase/revert |
91 | bind main u ?git reset %(commit) | 93 | bind main u ?git reset %(commit) |
@@ -16,6 +16,12 @@ nnoremap <leader>R :.w !bash<cr> | |||
16 | nnoremap <leader>W :set wrap!<cr> | 16 | nnoremap <leader>W :set wrap!<cr> |
17 | nnoremap <leader>tt :TableFormat<cr> | 17 | nnoremap <leader>tt :TableFormat<cr> |
18 | nnoremap <leader>u :set clipboard=unnamedplus<cr> | 18 | nnoremap <leader>u :set clipboard=unnamedplus<cr> |
19 | nnoremap <silent> <Leader>s | ||
20 | \ : if exists("syntax_on") <BAR> | ||
21 | \ syntax off <BAR> | ||
22 | \ else <BAR> | ||
23 | \ syntax enable <BAR> | ||
24 | \ endif<CR> | ||
19 | 25 | ||
20 | let g:vim_markdown_folding_disabled = 1 | 26 | let g:vim_markdown_folding_disabled = 1 |
21 | 27 | ||