Loading ...
Sorry, an error occurred while loading the content.

69350Re: [PATCH]Add an option for matchparen to disable it in insert mode

Expand Messages
  • Fanhe Fanhed
    May 1, 2013
    • 0 Attachment
      I just reproduce.
      eg: edit tag.c of vim sorce code file, and go to 2000 line number, input the follow
      func(((((((((())))))))) , snekjglenlnsekgnel|)

      '|' means the cursor. Then go to type.

      And type again after run :NoMatchParen.

      In fact, the reason is this sentence in matchparen.vim
      let [m_lnum, m_col] = searchpairpos(c, '', c2, s_flags, s_skip, stopline, 300)

      300msec will delay screen refreshing.
      For example run this
      autocmd CursorMoveI * sleep 100m


      After this, the cursor is flickering and shaking when typing.

      So, I prefer disable all CursorMoveI autocmd include matchparen plugin, but is not a matter in CursorMove autocmd.

      2013/5/1 Fanhe Fanhed <fanhed@...>
      That's odd too. I just forget how to reproduce. I remember it occurs a year ago on my working pc.
      I turn off this feature and try to reproduce in furturn.
      Now just forget this...

      Regards,
      Fanhe


      2013/5/1 Gary Johnson <garyjohn@...>
      On 2013-04-30, Fanhe Fanhed wrote:
      > In a 1000+ lines file, typing in the clsoing parenthesis. eg.
      > func(|)
      > | means the cursor, go to type.
      > The cursor will go to blink or shake. So I prefer disable matchparen in insert
      > mode.

      That's odd.  I created a 2000+ line file, moved the cursor to the
      50% point, opened a new line and entered "func()", then moved the
      cursor to between the two parentheses as you showed, and started
      typing.  The opening parenthesis remained steadily highlighted--
      there was no flickering or shaking.

      I tried it with Vim 7.3.882, both vim and gvim, on a Fedora 14
      system.

      Regards,
      Gary

      --
      --
      You received this message from the "vim_dev" 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_dev" group.
      To unsubscribe from this group and stop receiving emails from it, send an email to vim_dev+unsubscribe@....
      For more options, visit https://groups.google.com/groups/opt_out.




      --
      --
      You received this message from the "vim_dev" 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_dev" group.
      To unsubscribe from this group and stop receiving emails from it, send an email to vim_dev+unsubscribe@....
      For more options, visit https://groups.google.com/groups/opt_out.
       
       
    • Show all 19 messages in this topic