Thanks, it worked!
Actually I was mistaken about the runtime path. I was changing the filetype.vim 
in the wrong location (in the directory where I untarred and unzipped the 
files).

I did a ":echo $VIM" to find out the runtime path and it showed that the 
runtime path was in ~/share/vim/vim70.

I edited the filetype.vim in that directory and it worked.

Thanks again for your help.
 


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Monday, October 16, 2006 3:48 AM
To: Kunapuli, Udaykumar
Cc: vim@vim.org
Subject: RE: VIM help for normal text files with extension .lib (on UNIX)

Hi,

You problem can be worked around with :set isk+=_

But your problem may be you are not changing the one Vim is sourceing, or if 
the settings are overrideed by future scripts.
you have a filetype.vim in system wide $VIM directory or your ~/.vim
directory or vimfiles/after directory?   see :h 'runtimepath'
or if there is directories like ~/.vim/ftdetect and scripts in there overrides 
the default setting? see :h new-filetype

Hope that helps.
--
Sincerely, Pan, Shi Zhu. ext: 2606


"Kunapuli, Udaykumar" <[EMAIL PROTECTED]> 写于 2006-10-16 18:30:55:

> 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.
>
>
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Sunday, October 15, 2006 11:50 PM
> To: Kunapuli, Udaykumar
> Cc: vim@vim.org
> Subject: Re: VIM help for normal text files with extension .lib (on 
> UNIX)
>
> "Kunapuli, Udaykumar" <[EMAIL PROTECTED]> 写于 2006-10-16 14:37:33:
> > Hi,
> >
> > I tried editing the filetype.vim in the runtime directory and 
> > commenting the portion with the .lib extension. But it didn't work.
> >
>
>
> Are you sure you had done it right? I removed the "*.lib" and it works.
>
> this is the filetype.vim around 440 (after the "*.lib" removed)
>
> " Cobol
> au BufNewFile,BufRead *.cbl,*.cob       setf cobol
>
>
> IMO, the "*.lib" is a common extension which should not be treated as 
> cobol file. So just remove the relationship here.

Reply via email to