New User? Register here - Existing Users: Username: Password: [Advanced Login]

 

 

Current Poll

What language for system administration do you use ?







( 732 votes ~ 3 comments )

 

Weblog entry #433 for simonw

vim tag matching for HTML and other file types
Posted by simonw on Mon 14 Nov 2011 at 15:47
Tags: none.
To get the matchit.vim plugin working in Debian Squeeze which allows "%" to hope between HTML tags, C preprocessor conditionals, and all sorts of others, you also need to enable filetype plugins (echo "filetype plugin on" >>~/.vimrc or something similar if your vimrc is complicated), then then copy the macro file into your ".vim" plugin directory, (mkdir -p ~/.vim/plugins ; cp /usr/share/vim/addons/plugin/matchit.vim ~/.vim/plugin/matchit.vim).

Something I was vaguely aware vim did, but had never bothered sorting on this account till today. Now my "5" key (e.g. Shift+5) will become as abused during editing as the TAB key is when typing shell commands in the vague hope it will "do the right thing" when my brain is unsure what to type next.

 

 

 

Flattr