psvj
psvj

Reputation: 8840

How to expand VIM emmet abbreviation

I am trying to expand a emmet abbreviation in vim. for example in insert mode I type in html:5, then I press <C-y>, which I believe is supposed to expand the abbreviation. However, nothing happens.

Upvotes: 3

Views: 1493

Answers (1)

Marcus Buffett
Marcus Buffett

Reputation: 1389

Emmet's default abbreviation to expand an abbreviation is <Ctrl-y>,, not just <Ctrl-y>. Here are the other commands that are included with vim-emmet:

<C-Y>A        emmet-anchorize-summary
<C-Y>a        emmet-anchorize-url
<C-Y>k        emmet-remove-tag
<C-Y>j        emmet-split-join-tag
<C-Y>/        emmet-toggle-comment
<C-Y>i        emmet-image-size
<C-Y>N        emmet-move-prev
<C-Y>n        emmet-move-next
<C-Y>D        emmet-balance-tag-outword
<C-Y>d        emmet-balance-tag-inward
<C-Y>u        emmet-update-tag
<C-Y>;        emmet-expand-word
<C-Y>,        emmet-expand-abbr 

Upvotes: 1

Related Questions