1

In my fortran, ftplugin, I have added packadd matchit, which matched do/end do tags and % do jump from beginning to end. But it doesnot highlight the lines. Is there an easy way of doing it? I mean I dont want to install matchup or other plugins for this seemingly minor task.

enter image description here

I am expecting a highlight as I get here with if block.

3
  • I believe matchparen is responsible for highlighting brackets; there's also 'showmatch'. But what do you mean "does not highlight the lines"? Could you give an example of what you want?
    – D. Ben Knoble
    Commented Jul 15, 2020 at 21:38
  • @D.BenKnoble: I am expecting, the matching line should be highlighted, when matchit gets its match "b:match_words". By highlight, I obviously mean the matching lines will be highleghted, with different guifg/guibg.
    – BaRud
    Commented Jul 15, 2020 at 21:48
  • @D.BenKnoble: a screenshot of my expectation is attached. So, what I meant to say, as my cursor in on any of the line of %(if, else, endif here), all the lines will be highlighted.
    – BaRud
    Commented Jul 15, 2020 at 22:00

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.