This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" Set the complete-options that are best for auto-completion as you type: | |
" * menuone: show the (pop-up-)menu even when there is only one entry | |
" * preview: show the documentation for the current completion if available | |
" * noinsert: only insert a completion if the user presses enter | |
" * also do not set noselect/longest, since we want vim to select the first entry, so | |
" enter is sufficient to insert the completion | |
set completeopt=menuone,preview,noinsert | |
" Enable dictionary completions | |
set complete+=k |