HiPhish / info.vim

Browse info files from Vim (mirror)
https://gitlab.com/HiPhish/info.vim
MIT License
40 stars 6 forks source link

<Plug> mappings #2

Closed justinmk closed 7 years ago

justinmk commented 7 years ago

I noticed that the <Plug>Info* mappings do not use the "parentheses trick". <Plug>InfoFoo will trigger a wait for mapping to complete if there is also a <Plug>InfoFoo2 mapping defined.

The wait would be avoided if they were defined as <Plug>(InfoFoo) and <Plug>(InfoFoo2) . In other words, it's a good practice to always wrap <Plug>(...) mappings in parentheses.

Just FYI in case you didn't already know.

HiPhish commented 7 years ago

Didn't know that, I'll get to it.

HiPhish commented 7 years ago

Done.