How do you type <Cx> <Co> in Vim?
What <Cx><Co> keys are displayed in Vim? My goal is to get autocomplete working in the Golang.
I installed this plugin and activated syntax highlighting.
https://github.com/fatih/vim-go
The readme says that "AutoFill is enabled by default via <Cx><Co> ", but I donβt know which keys to press.
This is Ctrl + X, Ctrl + O. This combination is used in Vim for omnicompletion. Type :h omnifunc or :h ft-go-omni (I suppose) for more information.
go do it?
Are you adding the path to golang in $ PATH?
loading vim-go?
if you use vim-plug or plugin interface for plugins you should have vim-go in ~ / .vim / bundle
Are you editing a go file?
check
:set ft?isgo
Do you execute ": GoInstallBinaries" in vim?
And is the bin path added?
ps:
The default keyword is complex,
I recommend using neocomplete.vim Shougo and add the following to the basic configuration :
let g:neocomplete#sources#omni#input_patterns.go = '\h\w*\.\?' inoremap <silent> <CR> <Cr>=<SID>my_cr_function()<CR> function! s:my_cr_function() return pumvisible() ? neocomplete#close_popup() : "\<CR>" endfunction inoremap <expr><TAB> pumvisible() ? "\<Cn>" : "\<TAB>"