Loading ...
Sorry, an error occurred while loading the content.
 

Re: [vim] vim-scripts for beautifying code - where & what?

Expand Messages
  • Charles E. Campbell
    ... Thanks -- but I need to learn Java sometime... ... Didn t happen to me when I tried it; perhaps needs updating.
    Message 1 of 5 , Apr 30, 2002
      Thus saith email.4@...:
      > I must say that you have one of the best sites and your
      > programming-knowledge must be very broad and great.

      Thanks -- but I need to learn Java sometime...

      > When I try to format this with \t=:
      >
      > $ar_monday[day] = "Mo, ". $date_formatted;
      > $ar_monday[] = $time_b.".$time_e."-".$values['AktSComment'][$ii];
      >
      > I get the unformatted lines and ttalign adds me this $Z$ at the end:
      >
      > $ar_monday[day] = "Mo, ". $date_formatted;
      > $ar_monday[] = $time_b."-".$time_e." ".$values['AktSComment'][$ii];$Z$

      Didn't happen to me when I tried it; perhaps <ttalign.vim> needs
      updating. (http://www.erols.com/astronaut/vim/vimscript/ttalign.vim)

      This is what I got...

      ---------------------------------------------------------------------
      $ar_monday[day] = "Mo, ". $date_formatted;
      $ar_monday[] = $time_b.".$time_e."-".$values['AktSComment'][$ii];
      ---------------------------------------------------------------------

      > Besides, I get 43 substitutions in the whole document (a class) -
      > and I do not know what the program does.

      One of the things the scripts (not ttalign the program) does is remove
      trailing whitespace. The way the more involved scripts work is to
      insert "@"s at appropriate places, align on them, and then remove them.
      So that might explain the substitution count, too.

      Regards,
      Charles Campbell

      --
      Charles E Campbell, Jr, PhD _ __ __
      Goddard Space Flight Center / /_/\_\_/ /
      cec@... /_/ \/_//_/
      PGP public key: http://www.erols.com/astronaut/pgp.html
    Your message has been successfully submitted and would be delivered to recipients shortly.