X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=.vimrc;h=bad48fd4e8def586b5ac01dab21382b489b99f61;hb=d06fbeb326fcb79a1ae26376ac8dfab12d76754d;hp=02e779069d1f1ae8afc37c626f35fa2953261da1;hpb=b6f90974f9a2edaab714fe6afd7398bc2eb8fe7b;p=dotfiles.git diff --git a/.vimrc b/.vimrc index 02e7790..bad48fd 100644 --- a/.vimrc +++ b/.vimrc @@ -55,6 +55,7 @@ set sidescroll=1 " The minimal number of columns to scroll horizontally " 5 highlighting +colorscheme phd set nohlsearch " Stop the search highlighting " 6 multiple windows @@ -270,6 +271,8 @@ autocmd BufWritePost ~/.vimrc source ~/.vimrc | syntax on if version >= 700 " Save all files before running any quickfix command (grep, makeprg, etc.) autocmd QuickFixCmdPre * wall +" automatically close quickfix if it's the only window left +autocmd WinEnter * if winnr('$') == 1 && &buftype == "quickfix" | quit | endif endif " Syntax highlighting