--- Jorge Almeida <[EMAIL PROTECTED]> wrote:

>
> It appears there is a bug in the syntax file (see reply by Peter Hodge).
> This brings  up the question: How to install a syntax file without
> poluting the distribution system? In gentoo, the file is (for version
> 6.4):
> /usr/share/vim/vim64/syntax/perl.vim
> Replacing this is not a good idea, since it would be replaced next time
> I updated vim in gentoo. So, is there a way to tell vim where to look
> for [some] syntax files? (Something like /usr/local/share/...)?
> 

Well, there was a bug in the older syntax file I used (the one from 2005), but
the newer syntax file I downloaded is fine.  If you don't want to put the new
syntax file in your home directory (~/.vim/syntax/perl.vim), you can also put
it in /usr/share/vim/vimfiles/syntax/perl.vim.  That directory should already
be scanned by default ... check the value of 'runtimepath' to be sure.

>
> And about the indenting problem? Could you check with your vim and the
> above piece of code? If you place the cursor on line 796 and press 'o'
> in normal mode, it should open a line with the cursor above the '$' of
> "$heavy". What happened to me is that the cursor would be below the 'f'
> of "for".
> 

The indenting works fine for me, without installing any new indent scripts. 
Have you enabled 'autoindent' and/or 'smartindent'?

regards,
Peter



                
____________________________________________________ 
On Yahoo!7 
Check out PS Trixi - The hot new online adventure 
http://www.trixi.com.au

Reply via email to