My keyboard has z and y switched compared to US keyboards, which makes pressing
C-y for completions pretty awkward. I tried adding
imap <expr> <C-z> pumvisible() ? "<C-y>" :"<C-z>"
based on some examples I found but it doesn't seem to work in the popupmenu. How can I map
C-z to accept completions?