Hi,
I am using VIM 7.0 on UNIX. I have files with extension .lib (*.lib
files). VIM automatically thinks that it is a Cobol filetype. The file
has nothing to do with Cobol. I have tried setting the following things
in my .vimrc.
au BufNewFile,BufRead *.lib set ft=text
au BufNewFile,BufRead *.lib filetype off
au BufNewFile,BufRead *.lib filetype plugin indent off
I could take away the glaring syntax highlighting (red background on
all text!!!), but it was not of any help in terms of searching and
regular expression.
In ordinary text files, underscore ("_") is considered as a legal part
of the word (or the regular expression \w). However in files with
extension .lib, VIM seems to consider underscore ("_") as a special
character.
Is there anyway for me to make *.lib files to be treated as ordinary
text files by VIM for everything (syntax highlighting, indenting,
regular expression searching etc.)?
I tried editing the filetype.vim in the runtime directory and
commenting the portion with the .lib extension. But it didn't work.
Thanks,
Uday