nginx.vim icon indicating copy to clipboard operation
nginx.vim copied to clipboard

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

Open Znuff opened this issue 2 years ago • 0 comments

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;
  }
}

Znuff avatar Nov 03 '22 16:11 Znuff