summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--tigrc5
-rw-r--r--vimrc3
2 files changed, 5 insertions, 3 deletions
diff --git a/tigrc b/tigrc
index 4140024..3d067bc 100644
--- a/tigrc
+++ b/tigrc
@@ -8,6 +8,7 @@
8bind generic g none 8bind generic g none
9bind generic gg move-first-line 9bind generic gg move-first-line
10bind generic G move-last-line 10bind generic G move-last-line
11bind generic S none
11bind generic <C-H> scroll-left 12bind generic <C-H> scroll-left
12bind generic <C-L> none 13bind generic <C-L> none
13bind generic <C-L> scroll-right 14bind generic <C-L> scroll-right
@@ -126,8 +127,8 @@ bind main Su ?>git submodule update
126bind main Si ?>git submodule init 127bind main Si ?>git submodule init
127 128
128# make patches 129# make patches
129bind main ZZ ?>git format-patch %(commit) 130bind main PP ?>git format-patch %(commit)
130bind main Z1 ?>git format-patch -1 %(commit) 131bind main P1 ?>git format-patch -1 %(commit)
131 132
132# show diff based on revision 133# show diff based on revision
133bind main . >sh -c "git diff %(commit) | tig" 134bind main . >sh -c "git diff %(commit) | tig"
diff --git a/vimrc b/vimrc
index fed3305..7f26e1b 100644
--- a/vimrc
+++ b/vimrc
@@ -22,12 +22,13 @@ nnoremap <CR> o<Esc>
22nnoremap <C-K> ddkP 22nnoremap <C-K> ddkP
23nnoremap <C-J> ddp 23nnoremap <C-J> ddp
24 24
25nnoremap <silent> <Leader>s 25nnoremap <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>
31nnoremap <leader>S :echo join(reverse(map(synstack(line('.'), col('.')), 'synIDattr(v:val,"name")')),' ')<cr>
31 32
32nnoremap <leader>tt :VimwikiTable<cr> 33nnoremap <leader>tt :VimwikiTable<cr>
33nnoremap <leader>wg :VimwikiGoto 34nnoremap <leader>wg :VimwikiGoto