From 7aee4c1d99726b70247e317b363d1cd70552b40e Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Sun, 4 Jan 2009 00:03:54 +0000 Subject: [PATCH] Switch the vimrc file from smartindent to cindent, which is smarter about C-ish syntax, and supports the cinoptions variable. Set cinoptions to suppress the extra indentation for switch case labels. llvm-svn: 61617 --- utils/vim/vimrc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/utils/vim/vimrc b/utils/vim/vimrc index 586100de156..c400a13c187 100644 --- a/utils/vim/vimrc +++ b/utils/vim/vimrc @@ -24,8 +24,9 @@ match WhitespaceEOL /\s\+$/ " Optional " C/C++ programming helpers -set autoindent -set smartindent +set cindent +" Don't indent switch case labels beyond the switch. +set cinoptions=:0 " Add and delete spaces in increments of `shiftwidth' for tabs set smarttab