showkey
showkey

Reputation: 348

Why can't activate emmet.vim?

emmet.vim had been installed via vundle.

$ cd ~/.vim/bundle    
$ git clone [email protected]:mattn/emmet-vim.git

ls  .vim/bundle/emmet-vim
autoload  emmet.vim.vimup  plugin      TODO      unittest.vim
doc       Makefile         README.mkd  TUTORIAL

To reboot and edite test.html file.

cd /tmp
vim  test.html

To do as manual say: http://www.vim.org/scripts/script.php?script_id=2981

Type abbreviation
 +-------------------------------------
 | html:5_
 +-------------------------------------
"_" is a cursor position. and type "<c-y>," (Ctrl + y and Comma)

It is no use to input html5 and ctrl+y+, this way.

enter image description here

It is no use to input html5 and ctrl+y+, this way too.

enter image description here

Upvotes: 0

Views: 1096

Answers (2)

showkey
showkey

Reputation: 348

To install it with pathogen

cd ~/.vim/bundle
git clone https://github.com/mattn/emmet-vim.git

Upvotes: 0

sudo bangbang
sudo bangbang

Reputation: 28179

It might be the case that emmet is not installed correctly or available.

To make sure if emmet is available, run :scriptnames and see if emmet is there

If not install it correctly from https://github.com/mattn/emmet-vim

To use emmet, you have to follow the first method you mentioned. ie typing in html5 in editing space itself and do ctrly followed by ,

Upvotes: 1

Related Questions