Questions tagged [plugin-matchit]

This plugin makes the "%" command jump to matching HTML tags, if/else/endif in Vim scripts, etc.

1
vote
1answer
34 views

How to get matchit to work

I am trying and failing to get matchit to work. I have the plugin at: $ locate matchit.vim /usr/share/vim/vim80/macros/matchit.vim /usr/share/vim/vim80/pack/dist/opt/matchit/plugin/matchit.vim I ...
7
votes
1answer
610 views

What do matchit.vim's [%, ]%, a% do?

matchit's %/g% are simple enough to use, but I'm having trouble understanding the other mappings, which sound potentially useful but don't seem to work in any understandable way. ]% Go to [count] ...
2
votes
1answer
159 views

with matchit installed %match parenthesis and brackets only once in Fortran files

At the moment I'm writing, I removed the matchit plugin and the % works well, making the cursor jump from a (, [, or { to the corresponding closing character and vice versa. Now I installed matchit ...
2
votes
1answer
201 views

I cannot append a matching pair to b:match_words

I use matchit.vim and it works. Indeed I write a Fortran code and I can jump from IF to END IF pressing %. I'm trying to add the couple <+, > to b:match_words, adding let b:match_words = b:...
0
votes
0answers
237 views

Matchit Plugin: issues when resetting regular expressions in “b:match_words” for detecting Matlab file keywords

I'm trying to implement a custom regexp string to be used by matchit.vim for identifying matching keywords that can be jumped between with %. I found a utility from FileExchange (in the ftplugin ...
10
votes
1answer
1k views

How can I highlight matching “%” names (e.g. if/end, for/end) defined by matchit.vim on selection?

Currently my Vim highlights matching parentheses, brackets, quotes, etc. with Cyan background and white foreground -- the cursor can be moved between these with %. Thanks to my matchit.vim, I can also ...
1
vote
1answer
241 views

How do I get matchit to work with '/>' (self-closed tags)?

I really like to jump from one <el> to the end of </el> with matchit. I am using it for jsx, but it does not seem to work if I have an element that is declared with />, does anybody ...