]> git.rmz.io Git - dotfiles.git/commitdiff
vim/cpp: prefer .cpp over .c implementation files for .h
authorSamir Benmendil <me@rmz.io>
Thu, 9 Jun 2022 13:05:08 +0000 (14:05 +0100)
committerSamir Benmendil <me@rmz.io>
Thu, 9 Jun 2022 13:05:08 +0000 (14:05 +0100)
vim/ftplugin/cpp.vim

index ec68cf23bbefc7478ba8e4fa06361d81546652c7..c053fcc605f17a0185bdf1e263865427986926a3 100644 (file)
@@ -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|'