X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=.vimrc;h=88925276d9b817e00f52f7222470d70a860f8a5f;hb=20515fecab4ad47200eff26038c6cef8e2cef271;hp=02e779069d1f1ae8afc37c626f35fa2953261da1;hpb=b6f90974f9a2edaab714fe6afd7398bc2eb8fe7b;p=dotfiles.git diff --git a/.vimrc b/.vimrc index 02e7790..8892527 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" | q | endif endif " Syntax highlighting