I have below autocmd in my
cobol.vim ftplugin file in
augroup cobmods autocmd! autocmd BufNewFile * call s:CleanStart() augroup END
This doesn't work when I open a file using vim filename.cob.
However, if I put the same in my .vimrc, it works.
Anybody with any insights on how I can change this autocmd to work from
cobol.vim as I really don't want to put cobol related mods in vimrc.
Also looks like, by the time program (vim) flow reaches cobol.vim,
BufNewFile event is no longer valid.