]> git.rmz.io Git - dotfiles.git/commitdiff
vim: update fswitch for cpp
authorSamir Benmendil <samir.benmendil@ultrahaptics.com>
Mon, 10 Apr 2017 11:02:37 +0000 (12:02 +0100)
committerSamir Benmendil <samir.benmendil@ultrahaptics.com>
Mon, 10 Apr 2017 11:02:37 +0000 (12:02 +0100)
vim/ftplugin/cpp.vim

index faa7395e7366cc2ec9924b413aea94c1ee6e4952..fabf6b9a541a3679b753d3dd34b8e3cd1954b39d 100644 (file)
@@ -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 =