Vim:配置 vim 以显示当前打开文件的自动完成建议

Vim: Configure vim to show autocomplete suggestions from current open files

我有这个 vim 配置前一段时间,它显示了从我在会话期间打开的所有文件中按 Ctrl + N 的自动完成建议,而不仅仅是我正在编辑的当前文件。不幸的是,我丢失了 vimrc,现在我不知道是什么让它这样做了。

通过互联网搜索并找到与 omnicomplete 相关的结果。但我不明白它是如何工作的。任何帮助,将不胜感激。谢谢

来自:help i_ctrl-n

CTRL-N    Find next match for words that start with the
          keyword in front of the cursor, looking in places
          specified with the 'complete' option.  The found
          keyword is inserted in front of the cursor.

来自 :help 'complete'(或 <C-]>'complete'):

     b    scan other loaded buffers that are in the buffer list

不要google,:help.