]> git.rmz.io Git - dotfiles.git/commitdiff
vim: update fswitch rules
authorSamir Benmendil <me@rmz.io>
Tue, 23 Aug 2016 07:43:12 +0000 (08:43 +0100)
committerSamir Benmendil <me@rmz.io>
Tue, 23 Aug 2016 07:43:12 +0000 (08:43 +0100)
vim/ftplugin/cpp.vim

index 5f68c35097d7c46754c2c6c087fd6e9198f91142..af391a13f56976ff8d3e2b7c0b40abd6c348bf5b 100644 (file)
@@ -16,9 +16,9 @@ let b:load_doxygen_syntax = 1
 
 augroup fswitch
     au BufEnter *.h   let b:fswitchdst  = 'cpp,c'
-    au BufEnter *.h   let b:fswitchlocs = 'reg:/include/source/'
+    au BufEnter *.h   let b:fswitchlocs = 'reg:|include.*|source|'
     au BufEnter *.cpp let b:fswitchdst  = 'h'
-    au BufEnter *.cpp let b:fswitchlocs = 'reg:/\Csource/include/'
+    au BufEnter *.cpp let b:fswitchlocs = 'reg:|source|include/**|'
 augroup END
 
 nnoremap <buffer> gd :YcmCompleter GoTo<CR>