From f28834b6365b705d951c0a7259da3b6a2e6826c6 Mon Sep 17 00:00:00 2001 From: typebrook Date: Thu, 2 May 2019 00:06:14 +0800 Subject: update --- tigrc | 5 +++-- vimrc | 3 ++- 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 @@ bind generic g none bind generic gg move-first-line bind generic G move-last-line +bind generic S none bind generic scroll-left bind generic none bind generic scroll-right @@ -126,8 +127,8 @@ bind main Su ?>git submodule update bind main Si ?>git submodule init # make patches -bind main ZZ ?>git format-patch %(commit) -bind main Z1 ?>git format-patch -1 %(commit) +bind main PP ?>git format-patch %(commit) +bind main P1 ?>git format-patch -1 %(commit) # show diff based on revision bind 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 o nnoremap ddkP nnoremap ddp -nnoremap s +nnoremap s \ : if exists("syntax_on") \ syntax off \ else \ syntax enable \ endif +nnoremap S :echo join(reverse(map(synstack(line('.'), col('.')), 'synIDattr(v:val,"name")')),' ') nnoremap tt :VimwikiTable nnoremap wg :VimwikiGoto -- cgit v1.2.3-70-g09d2