search

Home  >  Q&A  >  body text

Why is ctrl-shift-v pasting so slow under vim?

When using Ctrl-Shift-v in vim insertion mode, the speed of pasting the system clipboard content is extremely slow. Sometimes a paragraph of text is pasted in several sentences. If there is too much content, It may even freeze; in normal mode, there is almost no delay when using "+p to paste the same amount of content. Why is this?

習慣沉默習慣沉默2743 days ago769

reply all(1)I'll reply

  • 曾经蜡笔没有小新

    曾经蜡笔没有小新2017-05-16 16:44:21

    Ctrl-Shift-v is equivalent to analog input. Each character is treated as a key and will trigger any logic that may be triggered, including highlighting, indented bracket matching, automatic line wrapping, etc. The speed is necessarily slow.

    "+p inserts the value from the register into buf at once, so it is fast.

    reply
    0
  • Cancelreply