aboutsummaryrefslogtreecommitdiff
path: root/vim/ftdetect/cpp.vim
diff options
context:
space:
mode:
Diffstat (limited to 'vim/ftdetect/cpp.vim')
-rw-r--r--vim/ftdetect/cpp.vim4
1 files changed, 4 insertions, 0 deletions
diff --git a/vim/ftdetect/cpp.vim b/vim/ftdetect/cpp.vim
new file mode 100644
index 00000000..71dc59e5
--- /dev/null
+++ b/vim/ftdetect/cpp.vim
@@ -0,0 +1,4 @@
+" C++ files
+autocmd BufNewFile,BufRead
+ \ *.c++,*.cpp,*.cxx,*.hh
+ \ setfiletype cpp