Doug Carter wrote:
Hi all,
I changed distros and now I can't get matchit to work on html files.
I've spent hours on the net and in help files and have had no success.
Can someone send me some example .vimrc settings to get this working?
I'm currently running vim 6.3 on CentOS.
TIA,
Doug
"Normally" the following are enough (replace .vim by vimfiles and possibly
.vimrc by _vimrc on non-Unix-like platforms)
Notes:
1. I recommend upgrading to version 7.0 (current patchlevel is 7.0.162). In
that case the $VIMRUNTIME directory will of course be $VIM/vim70 instead of
$VIM/vim63. You might also get a newer version of matchit in the process:
current version is (AFAIK) version 1.11 dated May 15 10:00 PM 2006 EDT.
2. If $VIM is undefined in your shell (which is the normal case) replace it by
whatever it would be inside Vim (typically something like /usr/local/share/vim
on Unix, "C:\Program Files\vim" on Windows, etc.)
-----> ~/.vim/plugin/matchit.vim (full)
runtime macros/matchit.vim
<-----
-----> do this in the shell (once). I assume a Unix(-like) shell
-----> and Unix (or GNU) utilities.
mkdir -p ~/.vim/doc
cp -vf $VIM/vim63/macros/matchit.txt ~/.vim/doc
vim -u NONE -i NONE -N "+helptags ~/.vim/doc | q"
<-----
-----> .vimrc (partim)
set nocompatible
" comment out this 'if' block and its content
" to get menus & messages in your 'locale' language
if has("unix")
language messages C
else
language messages en
endif
runtime vimrc_example.vim
" the above sets (among others)
" filetype plugin indent on
" syntax on
" -------------------------------
" user customizations come here
<-----
If matchit still doesn't work after the above have been done, describe your
problem *in detail* with (if possible) precise steps to reproduce the problem,
what happened, and what should have happened, and send it to the vim-dev list
and/or to Benji Fischer (see email address near the top of
$VIMRUNTIME/macros/matchit.vim).
Best regards,
Tony.