diff --git a/.vim/vimrc b/.vim/vimrc index ad2261b..168ae44 100644 --- a/.vim/vimrc +++ b/.vim/vimrc @@ -1011,6 +1011,17 @@ endif endfunction nnoremap hh :call HeaderToggle() +if(&filetype ==# 'c') || (&filetype ==# 'cpp') + if isdirectory('include') + set path+=include + elseif isdirectory('inc') + set path+=inc + elseif isdirectory('src/include') + set path+=src/include + endif +endif + + silent function! LINUX() return has('unix') && !has('macunix') && !has('win32unix') endfunction