I currently have a huge HTML file which doesn't have line breaks and just appears in a single line.
I want to format it in vim (macvim in particular). I tried the following options, but none of them has worked for me.
- Selected the text and pressed = . This will only auto intend the code. But since the entire code is present in one line, it doesn't do anything
- I tried this Plugin http://www.vim.org/scripts/script.php?script_id=3613 This kind of works but will insert linebreaks only for the current tag. I want the entire file to be formatted
Is there a way to do this either using a Plugin or otherwise?
Thanks!