On Wednesday 27 December 2006 02:06, A.J.Mechelynck wrote: > Kamaraju Kusumanchi wrote: > > Hi > > I have two vim installations. One is on Debian Etch, vim 7.0-122. The > > other one is Redhat 7.3, vim 7.0. On Debian I am using the distribution > > provided vim packages. On Redhat, I compiled vim 7.0 myself. Both > > machines have the same .vim, .vimrc, .gvimrc etc., > > > > Now I have a .F90 file whose contents looks like > > > > function name(args) > > ... > > end function > > > > Let's say my cursor is on f of function. > > On debian, If I enter %, it goes to "end function" line. > > On Redhat, If I enter %, it goes to the end of that line. That is on > > Redhat machine, it sees match between (, ) instead of match between > > function, end function. > > > > My configuration files are temporarily hosted at > > http://kamaraju.googlepages.com/vim_problems > > > > Please let me know how to get the correct behavior on the Redhat machine > > as well... > > > > raju > > 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 > > > Best regards, > Tony.
Thanks. But is there any way to do this without populating the ~/.vim directory? On Debian it works by default. Why does not it work like that on Redhat as well? BTW, on Redhat machine when I did :so ~/myroot/share/vim/vim70/macros/matchit.vim then % works fine. I wonder how it is automatically sourced in Debian and why it was not on Redhat. On both machines VIMRUNTIME is same. i.e. on Debian, :echo $VIMRUNTIME results in /usr/share/vim/vim70 and on Redhat it points to ~/myroot/share/vim/vim70. So where is the difference coming from? Do I need to do something while compiling vim? thanks raju -- Kamaraju S Kusumanchi http://www.people.cornell.edu/pages/kk288/ http://malayamaarutham.blogspot.com/ ---------------------------------------------------------------------- Click for military loan, fast & no lender fee, approval today http://tags.bluebottle.com/fc/KCuXzzVQE7eN42p3qzqKSbDeHasRgh/