From: Samir Benmendil Date: Thu, 9 Jun 2022 13:05:08 +0000 (+0100) Subject: vim/cpp: prefer .cpp over .c implementation files for .h X-Git-Url: https://git.rmz.io/dotfiles.git/commitdiff_plain/56388f1e2bc97e149a6cb95ae9d9c32bbaa54207?ds=sidebyside vim/cpp: prefer .cpp over .c implementation files for .h --- diff --git a/vim/ftplugin/cpp.vim b/vim/ftplugin/cpp.vim index ec68cf2..c053fcc 100644 --- a/vim/ftplugin/cpp.vim +++ b/vim/ftplugin/cpp.vim @@ -18,7 +18,7 @@ let b:load_doxygen_syntax = 1 augroup fswitch_cpp au! - au BufEnter *.h let b:fswitchdst = 'c,cpp,cc' + au BufEnter *.h let b:fswitchdst = 'cpp,cc,c' au BufEnter *.h let b:fswitchlocs = '.,reg:|include.*|src|' au BufEnter *.hpp let b:fswitchdst = 'cpp,c' au BufEnter *.hpp let b:fswitchlocs = '.,reg:|include.*|src|'