From 23bb8c01754869ee31c189f633d79be78f2e8900 Mon Sep 17 00:00:00 2001 From: Severyn Kozak Date: Wed, 25 Jun 2014 00:23:20 -0400 Subject: [PATCH] Document g:user_emmet_leader_key's trailing ','. README.mkd, doc/emmet.txt -Add some text to clarify that any keymap specified with `g:user_emmet_leader_key` must be followed by a `,`. --- README.mkd | 6 +++++- doc/emmet.txt | 5 ++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/README.mkd b/README.mkd index de72b53..b0079e4 100644 --- a/README.mkd +++ b/README.mkd @@ -47,7 +47,7 @@ Type ("\_" is the cursor position): html:5_ -Then type "\," ('Ctrl + y', then ','), you should see: +Then type `,` (Ctrly,), and you should see: ```html @@ -84,10 +84,14 @@ autocmd FileType html,css EmmetInstall ``` ## Redefine trigger key +To remap the default `` leader: ```vim let g:user_emmet_leader_key='' ``` + +Note that the trailing `,` still needs to be entered, so the new keymap would be `,`. + ## 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. diff --git a/doc/emmet.txt b/doc/emmet.txt index 10023b6..d399796 100644 --- a/doc/emmet.txt +++ b/doc/emmet.txt @@ -334,7 +334,10 @@ CUSTOMIZE *emmet-customize* > let g:user_emmet_leader_key = '' < - Or if you prefer to map for each actions, then you set each variables. + Note that a trailing ',' must be entered, so the resultant keymap is + ','. + + If you prefer to map for each actions, then you set each variables. 'user_emmet_expandabbr_key' 'user_emmet_expandword_key'