summaryrefslogtreecommitdiff
path: root/etc/vimrc
diff options
context:
space:
mode:
Diffstat (limited to 'etc/vimrc')
-rw-r--r--etc/vimrc3
1 files changed, 2 insertions, 1 deletions
diff --git a/etc/vimrc b/etc/vimrc
index 3cd1bf4..5ae1127 100644
--- a/etc/vimrc
+++ b/etc/vimrc
@@ -12,10 +12,11 @@ set shiftwidth=5
set shiftround
set autoindent
set smartindent
-set cindent
+autocmd FileType c,cpp set cindent comments=sr:/*,mb:*,ex:*/,://
inoremap # X#
set list
set listchars=tab:»·,trail:·,extends:…,precedes:…,nbsp:␠
+set formatoptions=coqrt
" Folding
set foldmethod=marker