Yes, you can use the Ctrl+X, Ctrl+K sequence to initiate completion from keywords in a dictionary. See
:help i_CTRL-X_CTRL-K for an entry point to configuring and using this feature.
Perhaps the best way to enable this feature is to enable spell checking, since Vim is able to use the spell checking dictionaries (typically shipped with the Vim runtimes) to complete keywords with the default setting. Typically all you need to do is issue a
:set spell command to enable spell checking and that will unlock keyword completion with it.
An alternative is to set the
'dictionary' option to point to one or more files (such as
/usr/share/dict/words on Linux and other Unix-like systems) containing lists of words to use for keyword completion.
You can also combine both options of spell checking dictionaries and word list files by including a special literal
spell as part of the list of paths in the
'dictionary' setting. For example:
One more advantage of leveraging the spell checking system for dictionary keyword completion is that you have a handy way of adding new acceptable completion targets, by simply marking them as good words for the spell checking system, which you can easily do with the