See /usr/share/vim/vim7x/filetype.vim how Vim determines that the file is apache .
In my configuration, using $ vim or $ sudo -e does not matter, because the .com extension is considered dcl .
I do not see a smart and reliable workaround that, in addition to overriding the .com auto command in your ~/.vimrc :
au BufNewFile,BufRead *.com set ft=apache
source share