Skip to content

Vim mode's = only indents first line in visual mode #583

Open
@dhalilov

Description

@dhalilov

Description

Hi folks,

Using vim mode, if you select multiple lines through either visual mode, visual line mode, or visual block mode, then ='s automatic indentation will only indent the first line instead of the whole block.

Reproduction

Paste the following snippet:

[
"Hello",
"world"
]

Then select the two lines containing "Hello" and "world", and press =. Only "Hello" gets indented.

Reproduction URL

No response

Browsers

No response

OS

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working.editorRelated to the text/markup editor.vimHow do I get out of here?

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions