Kunapuli, Udaykumar wrote:
Looks like it is hard-coded. No matter what I try, VIM does recognize *.lib as
a cobol file.
I have deleted the occurrence of cobol and .lib in the filetype.vim file. But
of no use.
In fact there is no occurrence of "cobol" in any of my runtime files.
The irritating thing is the search pattern, regular expression change.
You can try hitting "*" on a word with underscore character ("_") on a file with .lib extension,
you will see that it considers underscore ("_") as a distinct (non-word) character.
Did you restart Vim after that? If you didn't, the autocommands that were set
up at startup to detect *.lib as filetype "cobol" are probably still in place.
Note: Any changes you make anywhere in the $VIMRUNTIME directory tree can be
undone silently by any upgrade. You would be better off detecting your "own"
filetypes in ~/.vim/filetype.vim (for Unix) or ~/vimfiles/filetype.vim (for
Windows).
Best regards,
Tony.