From 6ace4f3240fd914bf60629e090b08058e44b86cf Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Mon, 10 Aug 2009 08:46:30 +0200 Subject: Automatically continue comments in C --- etc/vimrc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3