Skip to content

cc doesn't auto-indent blank lines within a block #77

Closed
@kizycat

Description

@kizycat

Test case: (* represents cursor position)

def a():
    b = 42
    c = "asdf"
*
    # random stuff

Pressing cc with indentexpr=cindent(v:lnum) gives the expected result:

def a():
    b = 42
    c = "asdf"
    *
    # random stuff

With indentexpr=GetPythonPEPIndent(v:lnum) however, the cursor remains on column 1:

def a():
    b = 42
    c = "asdf"
*
    # random stuff

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions