You can try to add this in vimrc file. set cinoptions=(0 On Fri, Jul 9, 2010 at 12:13 PM, sinbad <[email protected]> wrote:
> i have the following piece of c code. > > if (condition1 && > condition2(xy) && > condition3(abc)) > > > i want to auto indent the above piece of code, so i selected that > block > and pressed "=". the indentation looked like this > > if (condition1 && > condition2(xy) && > condition3(abc)) > > while i was expecting > > if (condition1 && > condition2(xy) && > condition3(abc)) > > how i can achieve he above indentation. > > btw, the following are my vim settings. > > background=dark cscopetag filetype=c > incsearch shiftwidth=4 tabstop=4 > ttyfast nowrap > cindent cscopeverbose helplang=en > number syntax=c textwidth=79 > ttymouse=xterm > comments=s1:/*,mb:*,elx:*/ > fileencoding=utf-8 > fileencodings=ucs-bom,utf-8,default,latin1 > > > > > -- > You received this message from the "vim_use" maillist. > Do not top-post! Type your reply below the text you are replying to. > For more information, visit http://www.vim.org/maillist.php > -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php
