jiangmiao / auto-pairs

Vim plugin, insert or delete brackets, parens, quotes in pair
http://www.vim.org/scripts/script.php?script_id=3599
4.12k stars 374 forks source link

Can't turn off FlyMode;无法关闭飞行模式。 #350

Open y004482 opened 2 years ago

y004482 commented 2 years ago

尊敬的开发者您好: 我在使用您开发的插件时,遇到了一点问题。无法解决。特此向您请教。 当我在一个 () 内插入一个 ) 时,我发现无法插入。具体来说 ( | ) //在“|”处,我输入了 ) ( )| //"|"跑到了外面,而没有插入。 我希望得到 ( )| ) 经过查询,推测是FlyMode的问题。可是我确定我的FLyMode是关闭的。并且对于其他符号也有这种问题。 另外:请原谅,因为我英文不好,所以我用中文编写了自文档并翻译成英文。

    Hello Dear Developer:
              I'm having a little problem with the plugin you developed. cannot be resolved. I hereby ask you for advice.
      When I insert a ) inside a () , I find that it cannot be inserted. Specifically
      (     |     ) //At "|", I entered )
      (    )|       //"|" went outside without inserting.
      I want to get (      )|      )
              After inquiries, it is speculated that it is a problem with FlyMode. But I'm sure my FLyMode is off. And also have this problem for other symbols.
              Also: Excuse me, because my English is not good, I wrote the self-document in Chinese and translated it into English.
LunarWatcher commented 2 years ago

That's not fly mode, that's just including spaces when checking for regular jumping. I don't think there's a way to fix it. My fork has a variable to disable it; don't remember which off the top of my head, will have to reply later

y004482 commented 2 years ago

尊敬的开发者您好:       感谢您在百忙之中回复我的问题。有一点我需要补充的是,在原文中我的       (   |  )中的空格是为了观看方便而写的。实际情况是        (|)//输入)后          ()|      我不确定这些空格是否影响的我的表达,所以写了这封回信。希望不会打扰到您。

------翻译来自谷歌---Translate from Google---- Hello Dear Developer:        Thank you for taking the time to answer my question. One thing I need to add is that in the original my        (  |  ) spaces are written for viewing convenience. The reality is         (|) // input) after           ()|       I'm not sure if these spaces affect my expression, so I'm writing this reply. Hope it don't bother you.

------------------ 原始邮件 ------------------ 发件人: "jiangmiao/auto-pairs" @.>; 发送时间: 2022年7月7日(星期四) 下午2:39 @.>; @.**@.>; 主题: Re: [jiangmiao/auto-pairs] Can't turn off FlyMode;无法关闭飞行模式。 (Issue #350)

That's not fly mode, that's just including spaces when checking for regular jumping. I don't think there's a way to fix it. My fork has a variable to disable it; don't remember which off the top of my head, will have to reply later

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

LunarWatcher commented 2 years ago

Oh, that's actually not flymode at all; that's regular jumping. No options for disabling it in this version, and I don't remember if I have an option for it in my fork. But if you only want to insert when an open pair is inserted, you can get away with inoremap ( (), and other variations for other pairs you need. Also a lot more light-weight than plugin like this if your needs are limited to insertion of close pairs only

y004482 commented 2 years ago

感谢您的回复。我去尝试inoremap ( ()。 Thank you for your reply. I'm going to try inoremap ( ().