From b7eafd6b952466fe19b198b461f3e98b543dcba9 Mon Sep 17 00:00:00 2001 From: Johannes Ranke Date: Wed, 13 Jan 2021 11:28:57 +0100 Subject: Use kdiff3 for git, set default branch to main --- bin/git_diff | 5 ++--- gitconfig | 3 ++- vimrc | 5 ++++- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/bin/git_diff b/bin/git_diff index 6193650..8b6d242 100755 --- a/bin/git_diff +++ b/bin/git_diff @@ -4,7 +4,7 @@ # From https://stackoverflow.com/a/7669988/3805440, thanks # side-by-side diff with custom options: -# /usr/bin/sdiff -w200 -l "$2" "$5" +#/usr/bin/sdiff -w200 -l "$2" "$5" # using kdiff3 as the side-by-side diff: /usr/bin/kdiff3 "$2" "$5" @@ -13,5 +13,4 @@ #/usr/bin/meld "$2" "$5" # using VIM -#/usr/bin/vimdiff "$2" "$5" - +#/usr/bin/nvim -d "$2" "$5" diff --git a/gitconfig b/gitconfig index 56527a0..42275e1 100644 --- a/gitconfig +++ b/gitconfig @@ -8,7 +8,6 @@ [core] excludesfile = ~/.gitignore autocrlf = input - pager = /usr/share/doc/git/contrib/diff-highlight/diff-highlight | less --tabs=4 -RFX [diff] external = ~/bin/git_diff [merge] @@ -18,3 +17,5 @@ insteadOf = salsa: [credential] helper = cache +[init] + defaultBranch = main diff --git a/vimrc b/vimrc index 9e995a4..d03e749 100644 --- a/vimrc +++ b/vimrc @@ -1,5 +1,5 @@ " vimrc of Johannes Ranke -" Last Change: Tue Dec 15, 2020 at 12:02 PM +0100 +" Last Change: Wed Jan 13, 2021 at 10:16 AM +0100 " default settings (much is handled by tpope/sensible) {{{1 set ts=2 set sw=2 @@ -44,6 +44,9 @@ Plug 'seb-mueller/kwbdi.vim' " Version control Plug 'tpope/vim-fugitive' Plug 'airblade/vim-gitgutter' +Plug 'samoshkin/vim-mergetool' +let g:mergetool_layout = 'mr' +let g:mergetool_prefer_revision = 'local' " File system exploration Plug 'scrooloose/nerdtree' -- cgit v1.2.1