Tags: #vim #plugin
" we load our 'simple autocomplete' plugin for every filetype _except_ .go files
fun! LoadSimpleAutoCompletePlugin()
" Load vim-simple-complete for everything except .go files
if &ft == "go"
return
endif
call plug#load('vim-simple-complete')
endfun
augroup LoadSACP
" remove any previously loaded autocmd! for the InsertEnter event
autocmd!
autocmd InsertEnter * call LoadSimpleAutoCompletePlugin() | autocmd! LoadSACP
augroup END