From d2faeda2d1e616a2e2a2d2fbf1e45743a6b09c25 Mon Sep 17 00:00:00 2001 From: Samir Benmendil Date: Mon, 10 Apr 2017 12:02:37 +0100 Subject: [PATCH 1/1] vim: update fswitch for cpp --- vim/ftplugin/cpp.vim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vim/ftplugin/cpp.vim b/vim/ftplugin/cpp.vim index faa7395..fabf6b9 100644 --- a/vim/ftplugin/cpp.vim +++ b/vim/ftplugin/cpp.vim @@ -15,10 +15,10 @@ setlocal cinoptions+=:0 " don't indent case labels 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 *.hpp let b:fswitchdst = 'cpp,c' + au BufEnter *.hpp let b:fswitchlocs = 'reg:|include.*|src|' au BufEnter *.cpp let b:fswitchdst = 'hpp,h' - au BufEnter *.cpp let b:fswitchlocs = 'reg:|source|include/**|' + au BufEnter *.cpp let b:fswitchlocs = 'reg:|src|include/**|' augroup END let g:switch_const_definitions = -- 2.48.1