Enable Dictionary Lookup in Vim


Prerequisites

  • VIM - Vi IMproved 9.0
  • macOS Sonoma Version 14.3.1

Query the current value of a dictionary option

:set dictionary?

Append a Unix standard words file

:set dictionary+=/usr/share/dict/words

or we might want to overwrite a dictionary option

:set dictionary=/usr/share/dict/words

Trigger dictionary lookup in INSERT mode

<C-x><C-k>