Skip to content

Commit

Permalink
Comment out 'enter in autocomplete menu' for now
Browse files Browse the repository at this point in the history
  • Loading branch information
mgunyho committed Jul 2, 2021
1 parent 9986f62 commit 30178e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ else " no gui
endif

" pressing enter when the autocomplete menu is open just selects the option.
inoremap <expr> <CR> pumvisible() ? "\<C-y>" : "\<C-g>u\<CR>"
"inoremap <expr> <CR> pumvisible() ? "\<C-y>" : "\<C-g>u\<CR>"
" pressing esc when the autocomplete menu is open leaves the current option in place and exits insert mode
"TODO, this doesn't work. it inputs pumvisible instead of calling the function...
"inoremap <expr> <ESC> pumvisible() ? "\<C-y><ESC>" : "\<C-g>u\<ESC>"
Expand Down

0 comments on commit 30178e1

Please sign in to comment.