On 3/28/07, Jan Dvořák <[EMAIL PROTECTED]> wrote:
> Robert Connolly wrote:
> > Someone emailed me the fix for vimrc:
> >
> > if ("/usr/share/vim")
> >  if has('syntax')
> >   syntax on
> >  endif
> > endif
> This snippet does not work for me.
>
> if (isdirectory("/usr/share/vim"))
>    if has('syntax')
>      syntax on
>    endif
> endif
>
> That does.
> --

Perhaps that is a test for syntax being supported in vim and not being
available.
In that case, have the /bin/vim built with syntax off and the
/usr/bin/vim built with syntax.

Hopefully the PREFIX has /usr/bin before /bin, this way the syntax one
will always be used unless not present and that /etc/vimrc should
still work as desired for both cases.

-- 
Kevin Day
-- 
http://linuxfromscratch.org/mailman/listinfo/hlfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to