emmet-vim icon indicating copy to clipboard operation
emmet-vim copied to clipboard

Add ability to disable emmet leader key?

Open jesseleite opened this issue 3 years ago • 4 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?

jesseleite avatar Nov 23 '21 16:11 jesseleite

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

JeromeBeckett avatar Jun 23 '22 15:06 JeromeBeckett

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

jesseleite avatar Jun 24 '22 04:06 jesseleite

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

eduardoarandah avatar Mar 14 '23 23:03 eduardoarandah

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

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

mmirus avatar Mar 01 '24 23:03 mmirus