Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

<Plug>delimitMateCR doesn't trigger, it writes function as text #259

Open
rafi opened this issue Jun 5, 2017 · 1 comment
Open

<Plug>delimitMateCR doesn't trigger, it writes function as text #259

rafi opened this issue Jun 5, 2017 · 1 comment

Comments

@rafi
Copy link

rafi commented Jun 5, 2017

Using this snippet from docs:

    inoremap <expr> <CR> delimitMate#WithinEmptyPair() ?
             \ "<Plug>delimitMateCR" :
             \ "external_mapping"

Produces literal text and doesn't trigger plugin, for example:

image

(Using latest Neovim v0.2.1-278-g1b2acb8d)

@tenfyzhong
Copy link

@rafi

imap <expr> <CR> delimitMate#WithinEmptyPair() ?
             \ "\<Plug>delimitMateCR" :
             \ "external_mapping"
  1. you should use imap
  2. add a \ before <Plug>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants