No, it doesn't help.
On Dec 3, 3:18 pm, Charles Campbell <[email protected]>
wrote:
> Tony Mechelynck wrote:
> > On 03/12/08 01:15, DragonKeeper wrote:
>
> >> Hi,
>
> >> I usenesC'sfiletype detection, which works fine if I use "vi
> >> filename.nc" to edit a file. However, if I'm already in the vim
> >> environment, and use ":e filename.nc" to open a file, there is no
> >> syntax highlight. I searched a long time but cannot fix it. Could
> >> anybody help me? Thanks!
>
> >> By the way, I'm using vim 7.2 in Ubuntu 8.10, and the filetype.vim is:
> >> if exists("did_load_filetypes")
> >> finish
> >> endif
> >> augroup filetypedetect
> >> au! BufRead,BufNewFile *.nc setfiletypenesc
> >> augroup END
>
> > That looks all right. Do you have any ":set" command for the
> > 'runtimepath' (or 'rtp') option in your vimrc?
>
> > When you use ":e filename" to open a file of a different filetype, it
> > does get highlighted, doesn't it?
>
> Hmm -- au! clears autocmds from the containing augroup. Perhaps you
> should try
>
> ...
> augroup filetypedetect
> au BufRead,BufNewFile *.nc setfiletypenesc
> augroup END
>
> Regards,
> Chip Campbell
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---