autocomplpop.vim で、途中でエンターを押した際、補完せず改行されるように
@@ -402,7 +402,8 @@ echo "" if pumvisible() " a command to restore to original text and select the first match - return "\<C-p>\<Down>" + " return "\<C-p>\<Down>" + return "\<C-p>" elseif len(s:behav_rest) if a:first " In case of dividing words by symbols while popup menu is visible,
それから vimrc に以下を追加。
inoremap <expr> <CR> pumvisible() ? "<C-Y>\<CR>" : "\<CR>"