Skip to content

Support an option to force hanging rather than aligned indent #131

Open
@ssokolow

Description

@ssokolow

While I haven't tested it enough to be sure it's the right way to accomplish what I want, I just modified the version of vim-python-pep8-indent that I got through vim-polyglot as follows:

        " DISABLED: Indent to match position of opening paren.
        " let res = paren_col
        "
        " Force nothing_after_opening_paren-style indentation to avoid having
        " to wear out my dedent keybind fighting with the indenter in 
        " situations like this:
        "
        "   parser.add_argument('-v', '--verbose', action="count", default=2,
        "       help="Increase the verbosity. Use twice for extra effect.")
        "   parser.add_argument('-q', '--quiet', action="count", default=0,
        "       help="Decrease the verbosity. Use twice for extra effect.")
        let res = base + s:sw()

It'd be really nice if I could just set something like this and get on with my life:

let g:python_pep8_indent_disable_paren_aligned = 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions