aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--vim/vimrc5
1 files changed, 3 insertions, 2 deletions
diff --git a/vim/vimrc b/vim/vimrc
index 9ee5c264..93e84dc8 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -140,9 +140,10 @@ if has('extra_search')
set incsearch " Show matches as I type
endif
-" More sensible language-agnostic setting for gf/:find
+" Options for file search with gf/:find
if has('file_in_path')
- set path=.,,**
+ set path-=/usr/include " Let the C/C++ filetypes set that
+ set path+=** " Search current directory's whole tree
endif
" Don't load GUI menus; set here before GUI starts