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:match_words . '<+:>'
to my ~/.vimrc
file, but I get errors E121 and E15 bout undefined variable b:match_words
and invalid expression b:match_words . '<+:>'
, respectively.
If i change to
let b:match_words = '<+:>'
The error disappear, but obviously I cannot match anything else that this only pair.
let b:match_words += '<+:>'
? I think thelet
is necessary to declare a variable modification. – statox Jul 18 '16 at 8:23.
, not+
. – Sato Katsura Jul 18 '16 at 8:51after/ftplugin/fortran.vim
. – Sato Katsura Jul 18 '16 at 9:27