summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2009-08-10 08:46:30 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2009-08-10 08:46:30 +0200
commit6ace4f3240fd914bf60629e090b08058e44b86cf (patch)
tree8287ee82bc5fc6abd21ff6135f0a0a5659a373a3 /etc
parent19a957f82e8626dda8372b549f9c24fcfbe5cda4 (diff)
Automatically continue comments in C
Diffstat (limited to 'etc')
-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