[PATCH dotfiles 1/2] git: always use annotate (sendmail) and signOff
Export this patch
Signed-off-by: William Durand <will+git@drnd.me>
---
git/gitconfig | 3 +++
1 file changed, 3 insertions(+)
diff --git a/git/gitconfig b/git/gitconfig
index ca08e49..2fc0edd 100644
--- a/git/gitconfig
+++ b/git/gitconfig
@@ -83,6 +83,7 @@
smtpserverport = 587
suppresscc = self
smtpuser = willdurand@fastmail.com
+ annotate = yes
[pager]
diff = diff-highlight | less
@@ -115,3 +116,5 @@
[init]
defaultBranch = main
+[format]
+ signOff = yes
--
2.17.1
[PATCH dotfiles 2/2] vim: map <leader>8
Export this patch
Signed-off-by: William Durand <will+git@drnd.me>
---
vim/vimrc | 1 +
1 file changed, 1 insertion(+)
diff --git a/vim/vimrc b/vim/vimrc
index 89517f8..3fa326c 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -167,6 +167,7 @@ nnoremap ` '
" convenient mapping to swith tab/indent settings
nnoremap <leader>2 :set tabstop=2<cr>:set shiftwidth=2<cr>:set softtabstop=2<cr>
nnoremap <leader>4 :set tabstop=4<cr>:set shiftwidth=4<cr>:set softtabstop=4<cr>
+nnoremap <leader>8 :set tabstop=8<cr>:set shiftwidth=8<cr>:set softtabstop=8<cr>:set noexpandtab<cr>
" pull word under cursor into LHS of a substitute (for quick search and replace)
nnoremap <leader>zs :%s/<C-r>=expand("<cword>")<cr>/
--
2.17.1