mattn / emmet-vim

emmet for vim: http://emmet.io/

Home Page:http://mattn.github.io/emmet-vim

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add ability to disable emmet leader key?

jesseleite opened this issue · comments

I personally have these mappings:

imap <C-e> <plug>(emmet-expand-abbr)
nmap ]e <plug>(emmet-move-next)
nmap [e <plug>(emmet-move-prev)

And never use the emmet leader, and want to free up that mapping for something else. What are your thoughts on allowing users to disable the leader key altogether? Maybe something like...

let g:user_emmet_leader_key = 0

Thoughts?

Would this option disable the key bindings altogether so that users have to map the functions they require themselves?

@JeromeBeckett Correct yep. If someone goes out of their way to disable the emmet leader, then they can remap whichever functions they require. This is a fairly common pattern, where if a user doesn't like a plugin's mappings, they can quickly disable them all and remap what they need from scratch 👍

ctrl-e / ctrl-y scroll the screen, I also think it should be capable to disabling it

Seems like you can do this with let g:emmet_install_only_plug = 1.

Ref: #494