Tuesday, March 21, 2017

Re: Matchit plugin modifying virtualedit

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

It's very possible that it's set somewhere else.  The problem is that
the matchit plugin always sets it empty, also when it already was empty.

          let restore_options = " ve=" . &ve . restore_options
          set ve=

This should be change to:

        if &ve != ''
          let restore_options = " ve=" . &ve . restore_options
          set ve=
        endif

Should also happen for 'ignorecase'.


I tested the "if &ve !=" change and that does appear to solve my issue.

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:

Post a Comment