Skip to content

Reindentation adds extra tab on # comments for the next line #21

@Znuff

Description

@Znuff

This has been bugging me for a while now, let's say you have the following config:

http {
  server {
    listen 80; # moo
    listen 443 ssl;

    server_name test;
  }
}

And you want to reindent the file with vim, by doing gg=G, this syntax will move every next line after the comment by a tab, for some reasons, and it will turn into:

http {
  server {
    listen 80; # moo
      listen 443 ssl;

    server_name test;
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions