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

108124Re: python auto indentation problem of indent/python.vim

Expand Messages
  • sc
    Sep 30, 2009
    • 0 Attachment
      On Wednesday 30 September 2009, Peng Yu wrote:

      > If I have
      >
      > def fun(x,y):
      > if x > y:
      >   print x
      >
      > else
      >   print y
      >
      >
      > After vim indentation, I have
      >
      > def fun(x,y):
      >   if x > y:
      >     print x
      >
      >   else
      >   print y

      i don't believe the python indent script will recognize the
      else as an else unless it is followed by a ":"

      sc

      --~--~---------~--~----~------------~-------~--~----~
      You received this message from the "vim_use" maillist.
      For more information, visit http://www.vim.org/maillist.php
      -~----------~----~----~----~------~----~------~--~---
    • Show all 3 messages in this topic