How to make emmet.vim plugin work?

7.5k views Asked by At

I am really getting headache from this - I am beginning to use vim for my daily programming tasks, so I decided to make use of great plugins which are available for it. So I started with Pathogen and I believe I succesfully installed it. Then I tried emmet.vim but I am really not able make this work. This is my directory structure

├── autoload
│   └── pathogen.vim
└── bundle
    ├── autoload
    │   ├── emmet
│       │   ├── lang
│   │       │   ├── css.vim
│   │   │       ├── haml.vim
    │   │   │   ├── html.vim
    │   │   │   ├── sass.vim
    │   │   │   ├── scss.vim
    │   │   │   └── slim.vim
    │   │   ├── lang.vim
    │   │   ├── lorem
    │   │   │   ├── en.vim
│       │   │   └── ja.vim
│   │       └── util.vim
    │   └── emmet.vim
    ├── doc
│       └── emmet.txt
    └── plugin
        └── emmet.vim
| .vimrc

And .vimrc content

execute pathogen#infect()
syntax on
filetype plugin indent on

So is this right? And I then tried simple tutorial mentioned on GitHub page but it didn't work. So I did

vim file.html
i //insert mode
html:5 and then pressing Ctrl + y + , 

but nothing happened. I appreciate any advice on this, I got really stucked

1

There are 1 answers

1
mhinz On BEST ANSWER

You forgot the root directory.

You have bundle/<repo content>, but it should be bundle/emmet-vim/<repo content>.

So usually you just do:

$ cd ~/.vim/bundle

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

(Which is also described at Pathogen README :-))