From b00cf4d33f4878fadebb0b5d7822098a32721c70 Mon Sep 17 00:00:00 2001 From: mattn Date: Thu, 27 Mar 2014 09:06:15 +0900 Subject: [PATCH] Update doc --- README.mkd | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.mkd b/README.mkd index 9d3162c..07e9435 100644 --- a/README.mkd +++ b/README.mkd @@ -88,6 +88,16 @@ autocmd FileType html,css EmmetInstall ```vim let g:user_emmet_leader_key='' ``` +## Adding custom snippets +If you have installed the [web-api](https://github.com/mattn/webapi-vim) for **emmet-vim** you can also add your own snippets using a custom **snippets.json** file. + +Once you have installed the [web-api](https://github.com/mattn/webapi-vim) add this line to your **.vimrc**: +``` +let g:user_emmet_settings = webapi#json#decode(join(readfile(expand('~/.snippets_custom.json')), "\n")) +``` +You can change the **path** to your **snippets_custom.json** according to your preferences. + +[Here](http://docs.emmet.io/customization/snippets/) you can find instructions about creating your customized **snippets.json** file. ## Project Authors