Normally it work if you have your file opened as buffer in vim. The autocompletion will look at them when you launch CTRL_P or CTRL_N (see :help complete):
'complete' 'cpt' string (default: ".,w,b,u,t,i")
local to buffer
This option specifies how keyword completion ins-completion works
when CTRL-P or ...