Hi,

I am having problem indenting python doctring in vim. Since I use
pycontract, a typical docstring looks like the following in which I
would like the left side to be aligned:
def magic(x, y):
    '''this function does magic with x and y

       :param x: the x factor (I hate that show)
       :type x: numeric
       :param y: a matrix
       :type y: array[MxN](float32,>=0)
       '''

But when I indent this section using either Ubuntu's default
python.vim or the one from here:
http://www.vim.org/scripts/script.php?script_id=974
the left side does not line up whenever there is a line with
parenthesis. Sometimes it affects the line before it too:

def magic(x, y):
    '''this function does magic with x and y

       :param x: the x factor (I hate that show)
    :type x: numeric
    :param y: a matrix
     :type y: array[MxN](float32,>=0)
       '''

Now, if I remove the parenthesis from the two lines that contain it,
then re-indent the block. Everything line up on the left as intended.

Any help is appreciated.

-- 
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

Reply via email to