When I try to fix the indentation of an HTML file with gg=G
, each line loses its indentation and becomes left-justified. Does anybody know what could be going o
maybe he does not recognize it is html. Can you see syntax highlight?. Could you show your file + filename?
€: Please change the following: filetype plugin on -> filetype plugin indent on
Hope this solves it. regards
You need to enable loading of indentation files for specific filetypes. Change this line in your .vimrc
...
filetype plugin on
..to this:
filetype plugin indent on
...then restart Vim and try again.
See :help filetype-indent-on
for more details.