aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-07-18 18:07:47 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-07-18 18:07:47 +1200
commit3b8e9c4847c8d919866aa9e364b6d9ee7e9033ec (patch)
treecfc736584740b9b38e2ece064affc4347572e48a
parentAdd to 'backupskip' one element at a time (diff)
downloaddotfiles-3b8e9c4847c8d919866aa9e364b6d9ee7e9033ec.tar.gz
dotfiles-3b8e9c4847c8d919866aa9e364b6d9ee7e9033ec.zip
Interfere more specifically with 'path'
-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