I have supertab installed alongside with vim-go.
Next, I'd like to have autocomplete when writing in Go, but when I press tab its literally inserts a tab character instead of showing the autocomplete prompt.
I tried to add the following in my vimrc but it didn't help:
let g:SuperTabDefaultCompletionType = "context"
or:
let g:SuperTabContextDefaultCompletionType = "<c-x><c-o>"
<c-x><c-o> works fine to start autocomplete, but I can't get anything with tab.
What am I doing wrong here?
UPD :verbose imap <Tab> result is:
i <Tab> <Plug>SuperTabForward
Last set from ~/.vim/plugged/supertab/plugin/supertab.vim line
1011
"context"with a minimal installation. After a restart of vimfmt.<tab>showed the omni completion candidates. For debugging try to use supertab without the context feature by setting in your vimrclet g:SuperTabDefaultCompletionType = "<c-x><c-o>"(none of the one you posted). This should try only omni completion on tab. You should also add to your question the result of:imap <Tab>. – Hotschke Nov 20 '18 at 15:46let g:SuperTabDefaultCompletionType = "<c-x><c-o>"- but still the same result - pressing the TAB button afterftm.results to adding tabulation. Also, I updated my Q with the:verbose imap <Tab>output. – setevoy Nov 20 '18 at 16:01$vim -version | head, terminal/gui in use, OS? Maybe there is something wrong with the keycode sent to vim. – Hotschke Nov 20 '18 at 16:05fatih/vim-goandervandew/supertab- and it works now. Now just will have to find which plugin brokes my setup :-) Maybe worth to add your comments as an answer - so I'll mark it as Accepted? – setevoy Nov 20 '18 at 16:09set pasteoption... Weird :-| – setevoy Nov 20 '18 at 16:13pasteoption enabled in your vimrc or elsewhere." – Hotschke Nov 20 '18 at 16:18