mattn / emmet-vim

emmet for vim: http://emmet.io/
http://mattn.github.io/emmet-vim
MIT License
6.39k stars 411 forks source link

Add ability to disable emmet leader key? #528

Open jesseleite opened 2 years ago

jesseleite commented 2 years ago

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?

JeromeBeckett commented 2 years ago

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

jesseleite commented 2 years ago

@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 👍

eduardoarandah commented 1 year ago

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

mmirus commented 5 months ago

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

Ref: https://github.com/mattn/emmet-vim/issues/494