diff --git a/.gitconfig b/.gitconfig index bdd9daa..550a453 100644 --- a/.gitconfig +++ b/.gitconfig @@ -10,6 +10,11 @@ eol = lf autocrlf = input +[merge] + tool = vimdiff + conflictstyle = diff3 + prompt = false + [color] branch = auto diff = auto diff --git a/.vimrc b/.vimrc index 88ec085..efc21a4 100644 --- a/.vimrc +++ b/.vimrc @@ -15,6 +15,7 @@ set softtabstop=2 set expandtab set listchars=tab:>-,trail:- set list +set noshowmode syntax on filetype on @@ -27,12 +28,17 @@ nmap n nzz nmap N Nzz let g:lightline = { + \ 'active': { + \ 'left': [ [ 'mode', 'paste' ], + \ [ 'gitbranch', 'readonly', 'filename', 'modified' ] ] + \ }, + \ 'component_function': { + \ 'gitbranch': 'gitbranch#name' + \ }, \ 'component': { \ 'readonly': '%{&readonly?"":""}', - \ }, - \ 'separator': { 'left': '', 'right': '' }, - \ 'subseparator': { 'left': '', 'right': '' } \ } + \} map :NERDTreeToggle " automatically close vim if the only window open is nerdtree @@ -54,3 +60,8 @@ autocmd BufWinEnter * match ExtraWhitespace /\s\+$/ autocmd InsertEnter * match ExtraWhitespace /\s\+\%#\@1 :diffget LOCAL +map 2 :diffget BASE +map 3 :diffget REMOTE