aboutsummaryrefslogtreecommitdiff
path: root/contrib/vimrc
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/vimrc')
-rw-r--r--contrib/vimrc2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/vimrc b/contrib/vimrc
index c207eea..356d455 100644
--- a/contrib/vimrc
+++ b/contrib/vimrc
@@ -45,7 +45,7 @@ function! SetStyle()
setlocal textwidth=80
endif
setlocal formatoptions-=ro formatoptions+=cqlt
- if index(l:c_exts, l:ext) != -1
+ if index(l:c_exts, l:ext) != -1 || &filetype == "c" || &filetype == "cpp"
setlocal cindent
setlocal cinoptions=>4,n-2,{2,^-2,:2,=2,g0,f0,h2,p4,t0,+2,(0,u0,w1,m0
endif