vim, right way to indent css and js inside html

后端 未结 2 1175
抹茶落季
抹茶落季 2021-01-21 08:35

Couldn\'t find proper solution in old questions, so

    

    
        
          


        
2条回答
  •  爱一瞬间的悲伤
    2021-01-21 09:08

    As it turns out: That this has been done on purpose! Even my current Vim 8.1 installation contains an indent/html.vim-file which has such zero-indentation as its default setting.

    That is however configurable via vimrc with:

    let g:html_indent_script1 = "inc" 
    let g:html_indent_style1 = "inc" 
    

    ...and -shame on us- is also mentioned in :help html-indent

提交回复
热议问题