Monday, March 20, 2017

Matchit plugin modifying virtualedit

:ver
VIM - Vi IMproved 8.0 (2016 Sep 12, compiled Jan 24 2017 13:37:57)
MS-Windows 32-bit GUI version with OLE support
Included patches: 1-233

I have realized virtualedit keeps getting set on me, so I ran:

:verbose set virtualedit?
  virtualedit=all
        Last set from c:\vim\vim80\pack\dist\opt\matchit\plugin\matchit.vim

Briefly looking it, there are many calls to:

  function! s:Match_wrapper(word, forward, mode) range
    " In s:CleanUp(), :execute "set" restore_options .
    let restore_options = (&ic ? " " : " no") . "ignorecase"
    if exists("b:match_ignorecase")
      let &ignorecase = b:match_ignorecase
    endif
    let restore_options = " ve=" . &ve . restore_options
    set ve=
    ...
    return s:CleanUp(restore_options, a:mode, startline, startcol, mid.'\|'.fin)
    ...

So, it looks this shouldn't be happening.
Is anyone else running into this?

I triggered it by simply hitting % on a { in a Java file.

Thanks,
David



--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments: