I am trying to develop my Website but I am not interested on using graphical interfaces. I would like to use vim only. I went on this page http://www.vim.org/scripts/script.php?script_id=2981, but, I am not sure how to proceed. any tutorials or step by step guide will be helpful.


to install emmet on vim

step one - install pathogen

install tim pope's pathogen this is needed to autoload the emmet plugin

copy and paste this into a terminal

sudo apt-get install -y curl
mkdir -p ~/.vim/autoload ~/.vim/bundle && \
curl -LSso ~/.vim/autoload/pathogen.vim https://tpo.pe/pathogen.vim

add this to your .vimrc

execute pathogen#infect()

If you're brand new to Vim and lacking a vimrc, run

vim ~/.vimrc

and paste in the following super-minimal example:

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

Step 2 - install emmet

copy and paste this into your terminal

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

this will install emmet for vim

You now should have emmet, go into an HTML file and type


note you only have less than a second to hit the , after you've hit Ctrl+y or else emmet won't do anything.

  • I did the first step and I got this: No command ' curl' found, did you mean: Command 'curl' from package 'curl' (main) curl: command not found. Should I just copy and paste the command? – Ken Sandoval Mar 13 '16 at 1:05
  • oh yeah you need curl, l'll update my answer now – the_velour_fog Mar 13 '16 at 1:06
  • I have a question: if I go on /etc/vim/vimrc and do a cat on that file. this is what I get: " " Uncomment the next line to make Vim more Vi-compatible " Source a global configuration file if available if filereadable("/etc/vim/vimrc.local") source /etc/vim/vimrc.local endif – Ken Sandoval Mar 13 '16 at 1:20
  • wait, I thhink I found it in home directory as hidden. I was going into /etc. – Ken Sandoval Mar 13 '16 at 1:24
  • There's no reason to use curl here. wget comes pre-installed and will work just as well. – muru Mar 13 '16 at 2:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.