[prev in list] [next in list] [prev in thread] [next in thread] 

List:       vim
Subject:    Re: confused by % behavior
From:       Gary Johnson <garyjohn () spk ! agilent ! com>
Date:       2006-12-28 8:33:13
Message-ID: 20061228083313.GA1550 () suncomp2 ! spk ! agilent ! com
[Download RAW message or body]

On 2006-12-27, Kamaraju Kusumanchi <kamaraju@bluebottle.com> wrote:
> On Wednesday 27 December 2006 02:06, A.J.Mechelynck wrote:
> >
> > see ":help matchit-install"
> >
> > As an alternative to copying the files, you may want to add a pair of
> > softlinks (untested):
> >
> > 	~/.vim/plugin/matchit.vim -> /usr/local/share/vim/vim70/macros/matchit.vim
> > 	~/.vim/doc/matchit.txt -> /usr/local/share/vim/vim70/macros/matchit.txt
> >
> >
> 
> This is not working for some reason. I have
> 
> $ls -l .vim/plugin/ .vim/doc
> .vim/doc:
> total 0
> lrwxrwxrwx    1 raju     xxxxxxx        45 Dec 27 19:06 matchit.txt -> 
> myroot/usr/share/vim/vim70/macros/matchit.txt
> 
> .vim/plugin/:
> total 0
> lrwxrwxrwx    1 raju     xxxxxxx        45 Dec 27 19:06 matchit.vim -> 
> myroot/usr/share/vim/vim70/macros/matchit.vim
> 
> Even then matchit is not working. However if I add
> 
>   source ~/myroot/usr/share/vim/vim70/macros/matchit.vim
> 
> to .vimrc directly then it is working fine.

I think your symbolic links were incorrectly constructed.  The 
target file names beginning with "myroot/usr/..." are relative path 
names; they should be absolute path names in this case.  Try this:

    ln -sf ~/myroot/usr/share/vim/vim70/macros/matchit.txt ~/.vim/doc
    ln -sf ~/myroot/usr/share/vim/vim70/macros/matchit.vim ~/.vim/plugin

HTH,
Gary

-- 
Gary Johnson                 | Agilent Technologies
garyjohn@spk.agilent.com     | Wireless Division
                             | Spokane, Washington, USA
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic