sponsor Vim development Vim logo Vim Book Ad

indent/python.vim : best plugin for indent python code!

 script karma  Rating 219/75, Downloaded by 10342  Comments, bugs, improvements  Vim wiki

created by
zhu nianyang
 
script type
indent
 
description
modify from http://www.vim.org/scripts/script.php?script_id=974, fix it's bugs,such as:

def fun(
    a,
    b
):
    print a,b

to:

def fun(
    a,
    b
    ):
    print a,b
 
install details
put it into the indent directory,then enjoy it!
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
python.vim 0.1.0 2013-08-06 7.0 zhu nianyang fix some bug.
python.vim 0.0.9 2011-03-15 7.0 zhu nianyang Comment and string should not indent.
python.vim 0.0.8 2011-03-10 7.0 zhu nianyang fix 0.0.7's bug
python.vim 0.0.7 2011-03-10 7.0 zhu nianyang like cindent:

x(
    1,
    2,
    3
)

user.login(
    1,
    2,
    3
    )
python.vim 0.0.6 2011-02-26 7.0 zhu nianyang fix the bug of call function,the current indent type is:

user = create_user(
    a,
    b,
    c
    )
ip used for rating: 3.14.246.254

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
Vim at Github