]> git.rmz.io Git - dotfiles.git/commitdiff
vim: .h files are usually ft=cpp
authorSamir Benmendil <me@rmz.io>
Sun, 9 Aug 2020 17:59:49 +0000 (18:59 +0100)
committerSamir Benmendil <me@rmz.io>
Sun, 9 Aug 2020 17:59:49 +0000 (18:59 +0100)
vim/filetype.vim

index e310fd82d7a2fa22bd40a314028f1cda9104df58..ae4e2a5a8e8b598216903a18b69d658d23b892db 100644 (file)
@@ -17,3 +17,7 @@ augroup ft_ros
     autocmd! BufNewFile,BufRead *.launch    setfiletype roslaunch
     autocmd! BufNewFile,BufRead package.xml setfiletype rospackage
 augroup END
+
+augroup h_is_cpp
+    autocmd! BufNewFile,BufRead *.h  setfiletype cpp
+augroup END