emmet-vim, custom map using <plug> causing problems

421 Views Asked by At

I am trying to use to remap the emmet-vim functions, but I have some problems : using :

map <c-e>e <plug>(EmmetExpandAbbr)
nmap <c-e>e <plug>(EmmetExpandAbbr)
or
map! <c-e>e <plug>(EmmetExpandAbbr)

nothing appens in any mode, and using :

imap <c-e>e <plug>(EmmetExpandAbbr)

then comes a weird problem : first, doing the sequence e in editmode,

div_

( '_' = cursor position) becomes :

div<Plug>(EmmetExpandAbbr)_

And moreover, strange thing, the original map <c-y>, give the same result...

I heard that the map using is a better way to permit the user to custom the shortcuts rather than using global variables... So how to do this with the emmet plug-in (I already succeed to custom shortcuts with other plugins)? Thank you !

0

There are 0 best solutions below