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

imap binding for <S-CR> syntax error #724

Closed
louispan opened this issue Feb 9, 2015 · 1 comment
Closed

imap binding for <S-CR> syntax error #724

louispan opened this issue Feb 9, 2015 · 1 comment

Comments

@louispan
Copy link
Contributor

louispan commented Feb 9, 2015

When using the <s-CR> bindings, you'll get the following error

E109: Missing ':' after '?'
E15: Invalid expression: pumvisible() ? neocomplcache#close_popup()"\^M" : "\^M"

The following lines are missing a . after close_pop()

Original https://github.com/spf13/spf13-vim/blob/3.0/.vimrc#L757

 inoremap <expr><s-CR> pumvisible() ? neocomplete#smart_close_popup()"\<CR>" : "\<CR>"

Suggested Correction

 inoremap <expr><s-CR> pumvisible() ? neocomplete#smart_close_popup()."\<CR>" : "\<CR>"

Original https://github.com/spf13/spf13-vim/blob/3.0/.vimrc#L884

 inoremap <expr><s-CR> pumvisible() ? neocomplcache#close_popup()"\<CR>" : "\<CR>"

Suggested Correction

 inoremap <expr><s-CR> pumvisible() ? neocomplcache#close_popup()."\<CR>" : "\<CR>"

NB.
I enabled in my terminal by configuring iTerm to send "[I" on shift-enter, and adding it to my .vimrc.local

map <ESC>[I <S-CR>
@louispan
Copy link
Contributor Author

louispan commented May 4, 2015

merged

@louispan louispan closed this as completed May 4, 2015
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

1 participant