]> oss.titaniummirror.com Git - smckown/dotfiles.git/commitdiff
vim/vimrc: change cinoptions
authorR. Steve McKown <rsmckown@gmail.com>
Wed, 9 Sep 2015 23:03:13 +0000 (17:03 -0600)
committerR. Steve McKown <rsmckown@gmail.com>
Wed, 9 Sep 2015 23:03:13 +0000 (17:03 -0600)
Previously, cinoptions attempted to use 1 shiftwidth for line
continuations except for if/while/switch and related lines, where two
sw's were used.  However, looking at code in the various libraries, it
appears that more commonly the line continuation is 2 sw's in all cases.

vim/vimrc

index 3308fe281f8cd65adebccc9542af5834d205a3f0..57fd1d810c2063b5b388cf23398214fb5c94154b 100644 (file)
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -71,7 +71,7 @@ set list
 set softtabstop=2 shiftwidth=2 expandtab
 
 " cinoptions for code formatting
-set cino=t0,(s,U1,k2s
+set cinoptions=t0,us,U1,k2s
 
 " File type specific settings.
 if has("autocmd")