. vimrc
autocmd FileType javascript set omnifunc=javascriptcomplete#CompleteJS
When editing js files, enter
Document., then enter
CTRL+X ,CTRL+O to display the completion menu
Can it be done?
Do you want to jump out of the completion menu?
The simplest
.
Map to<C-X><C-O>
Just do it.imap . <C-X><C-O>