1

I want to change the behavior of <Space> when the popup menu is open using this map

inoremap <expr> <Space> pumvisible() ? "\<Down>\<Enter>" : "\<Space>"

However, with this map my abbreviations no longer get triggered when terminated by a <Space>.

Is there anyway to get around this?

2
  • 5
    Make it return C-] in insert mode before the space – Christian Brabandt Aug 16 '18 at 5:26
  • Christian, that should be an answer, not a comment. – Spidey Aug 19 '18 at 12:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.