diff options
-rw-r--r-- | tigrc | 5 | ||||
-rw-r--r-- | vimrc | 3 |
2 files changed, 5 insertions, 3 deletions
@@ -8,6 +8,7 @@ | |||
8 | bind generic g none | 8 | bind generic g none |
9 | bind generic gg move-first-line | 9 | bind generic gg move-first-line |
10 | bind generic G move-last-line | 10 | bind generic G move-last-line |
11 | bind generic S none | ||
11 | bind generic <C-H> scroll-left | 12 | bind generic <C-H> scroll-left |
12 | bind generic <C-L> none | 13 | bind generic <C-L> none |
13 | bind generic <C-L> scroll-right | 14 | bind generic <C-L> scroll-right |
@@ -126,8 +127,8 @@ bind main Su ?>git submodule update | |||
126 | bind main Si ?>git submodule init | 127 | bind main Si ?>git submodule init |
127 | 128 | ||
128 | # make patches | 129 | # make patches |
129 | bind main ZZ ?>git format-patch %(commit) | 130 | bind main PP ?>git format-patch %(commit) |
130 | bind main Z1 ?>git format-patch -1 %(commit) | 131 | bind main P1 ?>git format-patch -1 %(commit) |
131 | 132 | ||
132 | # show diff based on revision | 133 | # show diff based on revision |
133 | bind main . >sh -c "git diff %(commit) | tig" | 134 | bind main . >sh -c "git diff %(commit) | tig" |
@@ -22,12 +22,13 @@ nnoremap <CR> o<Esc> | |||
22 | nnoremap <C-K> ddkP | 22 | nnoremap <C-K> ddkP |
23 | nnoremap <C-J> ddp | 23 | nnoremap <C-J> ddp |
24 | 24 | ||
25 | nnoremap <silent> <Leader>s | 25 | nnoremap <silent> <leader>s |
26 | \ : if exists("syntax_on") <BAR> | 26 | \ : if exists("syntax_on") <BAR> |
27 | \ syntax off <BAR> | 27 | \ syntax off <BAR> |
28 | \ else <BAR> | 28 | \ else <BAR> |
29 | \ syntax enable <BAR> | 29 | \ syntax enable <BAR> |
30 | \ endif<CR> | 30 | \ endif<CR> |
31 | nnoremap <leader>S :echo join(reverse(map(synstack(line('.'), col('.')), 'synIDattr(v:val,"name")')),' ')<cr> | ||
31 | 32 | ||
32 | nnoremap <leader>tt :VimwikiTable<cr> | 33 | nnoremap <leader>tt :VimwikiTable<cr> |
33 | nnoremap <leader>wg :VimwikiGoto | 34 | nnoremap <leader>wg :VimwikiGoto |