nginx.vim
nginx.vim copied to clipboard
Reindentation adds extra tab on `# comments` for the next line
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;
}
}