How to make emmet.vim plugin?

I really get a headache from this - I'm starting to use vim for my daily programming tasks, so I decided to use the great plugins that are available to him. So I started with Pathogen , and I believe that I have successfully installed it. Then I tried emmet.vim , but I really can't do 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 that right? And then I tried the simple tutorial mentioned on the GitHub page, but that didn't work. Therefore 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'm really stuck

+4
source share
1 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 git@github.com :mattn/emmet-vim.git

(which is also described in Pathogen README :-) )

+11
source

Source: https://habr.com/ru/post/1500487/


All Articles