1 /* vim: set cin ts=4 sw=4 : */
7 :set nocompatible viminfo+=nviminfo
13 /* start of AUTO matically checked vim: set ts=4 : */
102 /* Test for 'cindent' do/while mixed with if/else: */
117 /* Test for 'cindent' with two ) on a continuation line */
119 if (asdfasdf;asldkfj asdlkfj as;ldkfj sal;d
120 aal;sdkjf ( ;asldfkja;sldfk
121 al;sdjfka ;slkdf ) sa;ldkjfsa dlk;)
128 // foo() these three lines should remain in column 0
132 /* Test for continuation and unterminated lines: */
145 testje for indent with empty line
155 (not a joke || testing
159 (not a joke || testing
195 if (alskdfj ;alsdkfjal;skdjf (;sadlkfsa ;dlkf j;alksdfj ;alskdjf
197 awith cino=(0 ;lf this one goes to below the paren with ==
198 ;laksjfd ;lsakdjf ;alskdf asd)
270 test) { /* this line doesn't work right */
279 if (!(vim_strchr(p_cpo, CPO_BUFOPTGLOB) != NULL && entering) &&
280 (bp_to->b_p_initialized ||
281 (!entering && vim_strchr(p_cpo, CPO_BUFOPT) != NULL)))
290 /* Special Comments : This function has the added complexity (compared */
291 /* : to addtolist) of having to check for a detail */
292 /* : texture and add that to the list first. */
294 char *(array[100]) = {
354 /* where does this go? */
366 c; /* Hey, NOW it indents?! */
374 /* Hey, what am I doing here? Is this coz of the ","? */
423 hello with ":set comments= cino=c5"
427 hello with ":set comments= cino="
448 int foo() {return 1;}
466 if (clipboard.state == SELECT_DONE
467 && ((row == clipboard.start.lnum
468 && col >= clipboard.start.col)
469 || row > clipboard.start.lnum))
491 int fooRet = foo(pBar1, false /*fKB*/,
492 true /*fPTB*/, 3 /*nT*/, false /*fDF*/);
516 int x; // no extra indent because of the ;
521 char *tab[] = {"aaa",
526 char *a[] = {"aaa", "bbb",
530 char *tab[] = {"aaa",
531 "xx", /* xx */}; /* asdf */
587 int b ) : BaseClass(a)
615 Constructor::Constructor(int a,
625 Constructor::Constructor(int a,
631 Constructor::Constructor(int a,
632 int b ) /*x*/ : /*x*/ BaseClass(a),
641 int Test() { return FALSE; }
642 int Test1() { return TRUE; }
644 CAbc(int a, int b ) :
659 public: // <-- this was incoreectly indented before!!
665 class CAbc : public BaseClass1,
696 void asdf() /* ind_maxparen may cause trouble here */
728 a = cond ? foo() : asdf
755 Foo::Foo (int one, int two)
760 Constructor::Constructor(int a,
791 (void) MyFancyFuasdfadsfnction(
805 :set tw=0 wm=60 columns=80 noai fo=croq
807 a about life, the universe, and the rest
\e
813 * a real serious important big
816 /* insert " about life, the universe, and the rest" after "serious" */
822 joabout life
\e/happens
830 * Testing for comments, without 'cin' set
838 the end of the comment, try inserting a line below */
851 var = this + that + vec[0] * vec[0]
886 main ( int first_par, /*
925 cmd; /* this should go under the } */
937 } else { /* Start (two words) end */
954 } else { /* Start (two words) end */
957 n(); /* should be under the if () */
1009 } while ( a ); /* add text under this line */
1017 olabel2: b();
\rlabel3 /* post */:
\r/* pre */ label4:
\rf(/*com*/);
\rif (/*com*/)
\rcmd();
\e
1028 :set comments& comments^=s:/*,m:**,ex:*/
1038 ** A different comment
1043 :set comments& comments-=s1:/* comments^=s0:/*
1057 :set comments& comments-=s1:/* comments^=s0:/*
1240 int Test() { return FALSE; }
1268 averylongfunctionnamelongfunctionnameaverylongfunctionname()->asd(
1275 /* those are ugly, but consequent */
1277 func()->asd(asdasdf,
1278 averylongfunctionname(
1280 dec)->averylongfunctionname(
1291 averylongfunctionnameaverylongfunctionnameavery()->asd(fasdf(
1318 :g/^STARTTEST/.,/^ENDTEST/d
1319 :1;/start of AUTO/,$wq! test.out