Install Vim to /bin?

Kevin Day thekevinday at gmail.com
Wed Mar 28 07:20:52 PDT 2007


On 3/28/07, Jan Dvořák <mordae at thirdcms.org> 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


More information about the hlfs-dev mailing list