Commits

Evgeny Podjachev committed 351f922

Fixed includes switching.

  • Participants
  • Parent commits fc2d5c7

Comments (0)

Files changed (1)

.vim/bundle/FSwitch/plugin/fswitch.vim

     au!
     "au BufEnter *.h call s:SetVariables('cpp,c', 'reg:/include/src/,reg:/include.*/src/,ifrel:|/include/|../src|')
     "au BufEnter *.c,*.cpp call s:SetVariables('h', 'reg:/src/include/,reg:|src|include/**|,ifrel:|/src/|../include|')
-	au BufEnter *.h,*.hpp call s:SetVariables('cpp,c', 'reg:|inc$|src|,reg:/include/source/,reg:/Include/Source/,reg:|inc|src|,reg:/include.*/src/,ifrel:|/include/|../src|,ifrel:|/inc/|../src|')
-	au BufEnter *.c,*.cpp call s:SetVariables('h,hpp', 'reg:|src$|inc|,reg:/source/include/,reg:/Source/Include/,reg:|src|inc|,ifrel:|/src/|../include|,ifrel:|/src/|../inc|')
+	au BufEnter *.h,*.hpp call s:SetVariables('cpp,c', 'reg:|\(.*\)inc|\1src|,reg:/include/source/,reg:/Include/Source/,reg:/include.*/src/,ifrel:|/include/|../src|,ifrel:|/inc/|../src|')
+	au BufEnter *.c,*.cpp call s:SetVariables('h,hpp', 'reg:|\(.*\)src|\1inc|,reg:/source/include/,reg:/Source/Include/,ifrel:|/src/|../include|,ifrel:|/src/|../inc|')
 
 augroup END