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

breaks C-e #20

Closed
justrajdeep opened this issue Oct 18, 2016 · 3 comments
Closed

breaks C-e #20

justrajdeep opened this issue Oct 18, 2016 · 3 comments

Comments

@justrajdeep
Copy link

Hi

When i want to populate a line from below using C-e and the completion popup window is open it does not copy the text from below.

Thanks

@markonm
Copy link

markonm commented Nov 2, 2016

Hi,
CTRL-E has different role when popup menu is visible, read :h complete_CTRL-E. If you prefer to insert character from line below you could use the following mapping:

inoremap <expr> <C-e> pumvisible() ? "\<C-y>\<C-e>" : "\<C-e>"

@justrajdeep
Copy link
Author

Some thoughts, please let me know if it makes sense.
when completion is active, CTRL-E stops it and go back to the originally typed text, essentially it closes the popup, that should be CTRL-G (emacs style) or ctrl-c.

CTRL-Y's function in insert mode should be done by Ctrl-n or ctrl-p and then maybe <return>

@maralla
Copy link
Owner

maralla commented Feb 6, 2017

Now CTRL-E and CTRL-Y have the same meaning as :h complete_CTRL-E and :h complete_CTRL-Y.

@maralla maralla closed this as completed Oct 31, 2017
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

3 participants