how to disable vim autocomplete popup for plain text files?
- by doorfly
After literally days of tweaking, I think I got vim's autocomplete (omnicomplete + Acp plugin) to work acceptably. But the annoying thing is that it is still enabled for plain text files so I would have to type :DisableAcp for README or plain text files. How do I add logic to my vimrc so that if it detects an empty filetype it disables the Acp on startup?
here is what I wrote:
if &filetype == ""
let g:acp_enableStartup = 0
endif
but this disables Acp on start up for all files.