]> git.rmz.io Git - dotfiles.git/commitdiff
vim/cpp: switch to .cc files too
authorSamir Benmendil <me@rmz.io>
Sun, 17 Jan 2021 23:51:37 +0000 (23:51 +0000)
committerSamir Benmendil <me@rmz.io>
Sun, 17 Jan 2021 23:51:37 +0000 (23:51 +0000)
vim/ftplugin/cpp.vim

index c76f79b3726bc5b7982675a087507df00eb3e3a3..807ef891e41bfad1ea772d5db80f05d92fb7de3e 100644 (file)
@@ -18,7 +18,7 @@ let b:load_doxygen_syntax = 1
 
 augroup fswitch_cpp
     au!
-    au BufEnter *.h   let b:fswitchdst  = 'c,cpp'
+    au BufEnter *.h   let b:fswitchdst  = 'c,cpp,cc'
     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|'