]> git.phdru.name Git - dotfiles.git/blobdiff - .vimrc
.profile, .shellrc: minor refactoring
[dotfiles.git] / .vimrc
diff --git a/.vimrc b/.vimrc
index 02e779069d1f1ae8afc37c626f35fa2953261da1..bad48fd4e8def586b5ac01dab21382b489b99f61 100644 (file)
--- 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