How do I tidy up an HTML file's indentation in VI?

后端 未结 11 1906
庸人自扰
庸人自扰 2020-11-29 15:02

How do I fix the indentation of his huge html files which was all messed up?

I tried the usual \"gg=G command, which is what I use to fix the indentation of code fil

11条回答
  •  囚心锁ツ
    2020-11-29 15:41

    Have you tried using the HTML indentation script on the Vim site?

    • http://www.vim.org/scripts/script.php?script_id=2075

提交回复
热议问题