The default completion (<C-N>
/ <C-P>
in insert mode) uses the sources configured in 'complete'
. If this option value contains .
and k
, both current buffer and the dictionary are considered (you might shortly see messages like Scanning tags...
etc. after triggering completion that indicate the current source being searched).
That's the whole purpose of default completion; in contrast, you have to use different completion commands (e.g. <C-X><C-K>
for dictionary) to use a single source.
Edit: You need to ensure that the k
value actually persists; the ~/.vim/view/
suggests you're restoring a saved view; try clearing those views and removing your existing .viminfo
file to override any old persisted values of 'complete'
.