From: Samir Benmendil Date: Tue, 23 Aug 2016 07:43:12 +0000 (+0100) Subject: vim: update fswitch rules X-Git-Url: https://git.rmz.io/dotfiles.git/commitdiff_plain/0cb2444e9d2745c7ca4c9bcd7c2ea5e1f11ff9f7 vim: update fswitch rules --- diff --git a/vim/ftplugin/cpp.vim b/vim/ftplugin/cpp.vim index 5f68c35..af391a1 100644 --- a/vim/ftplugin/cpp.vim +++ b/vim/ftplugin/cpp.vim @@ -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 gd :YcmCompleter GoTo