h4plpg
Last Updated: February 25, 2016
·
411
· pjambet
9fafb69190a2986f46731f42c2a4bcf9

Never insert a newline when accepting autocomplete

vim
inoremap <expr> <CR> pumvisible() ? "\<C-y>" : "\<C-g>u\<CR>"

This comes from http://vim.wikia.com/wiki/Make_Vim_completion_popup_menu_work_just_like_in_an_IDE

Say Thanks
Respond