Open bulletmark opened 6 years ago
emmet-vim expand as same as https://docs.emmet.io/
And you can modify default configuration.
let g:user_emmet_settings = {
\ 'html': {
\ 'snippets': {
\ 'html:5': 'you expected'
\ }
\ }
\}
Actually, doesn't expand exactly as emmet docs. There is a missing Document
in the title
line, like VS Code and ATOM have.
Both VS Code and Atom don't seem to care about that compatibility. Why must emmet-vim?
For those of you looking how to achieve this you can add the following to your .vimrc:
let g:user_emmet_settings = {
\ 'html': {
\ 'snippets': {
\ 'html:5': '!!!+html>(head>(meta[charset=${charset}]+meta[name="viewport" content="width=device-width,initial-scale=1.0"]+meta[http-equiv="X-UA-Compatible" content="ie=edge"]+title +body'
\}
\}
\}
Thanks. Life saver.
Both VS Code and Atom expand
html5
(i.e.!
) to the following:However, emmet-vim (current master branch) expands to the lesser:
Can we have this expansion enhanced to the above?