Friday, January 14, 2022

Re: Pasting some yank line is slow

On 2022-01-14 01:04, Ni Va wrote:
> I encounter a recent problem pasting some yank things (lines or
> sentences' part).
>
> don't see why because my updatetime is et to 300 and redrawtime is
> set to 500.

A couple candidates occur to me:

1) if the paste itself is slow to activate, do you have some mapping
interfering? I'd start by checking the output of

:map
:imap
:vmap

to see if there's anything that might be causing problems. You can
also try tweaking 'timeoutlen' to see if increasing the value makes
it worse and shortening the timeout makes it better. Or if hitting
<space> (or some other character) while waiting causes it to paste
quickly. If this is the case, you likely have some mapping that vim
is waiting to see if you'll complete it before the timeout. Usually
the best solution here is to change the mapping(s) to remove the
overlap.


2) in some cases, syntax highlighting can cause some serious
slow-down. I've noticed it most with XML containing long lines. Try
turning off syntax highlighting

:syn off

doing the paste, and see if it's faster. If so, it would help to
know the filetype in question.

3) plugins may also interfere. Have you tried doing the paste
without any plugins enabled? Sometimes a plugin will interfere or do
strange/pathological things. If you can bisect your .vimrc and
track it down to a misbehaving plugin, you can go nudge its author
for help.

Hopefully this gives you some mechanisms to track diagnose the issue,

-tim



--
--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/20220114093618.797ad700%40bigbox.attlocal.net.

No comments: