chrisbra / matchit

The matchit plugin from Vim
61 stars 9 forks source link

Matchit prevents {count}% from working in Visual mode #24

Closed lkintact closed 3 years ago

lkintact commented 3 years ago

Hi, your repository is specified in the "Known Bugs and Limitations" section of $VIMRUNTIME/pack/dist/opt/matchit/doc/matchit.txt, so I'm reporting the isssue here.

To Reproduce:

  1. Run gvim --clean
  2. Execute :packadd matchit
  3. Execute :h index.txt
  4. Start Visual mode with v, V or Ctrlv
  5. Type a number, say, 50, and press %. Instead of extending the selection to the middle of the buffer gVim does nothing.

Environment:

lkintact commented 3 years ago

Thanks for the fix. I may not understand something, but shouldn't the new, fixed matchit code replace the old one in the Vim source tree? Vim 8.2.2375 still comes with matchit version 1.17.

chrisbra commented 3 years ago

I haven't tagged a new release yet to be submitted to Bram

https://github.com/chrisbra/matchit/tags