Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

<C-v> freezes nvim when pasting a large number of texts #489

Closed
nevertoday opened this issue Feb 7, 2023 · 7 comments
Closed

<C-v> freezes nvim when pasting a large number of texts #489

nevertoday opened this issue Feb 7, 2023 · 7 comments
Labels
educational Issues that contain useful content good-first-issue Good for newcomers invalid:misc Config independent issue usage User-specific issues

Comments

@nevertoday
Copy link

Feature description

我macmini m2 上,配置好了,然后复制大量文本,cmd+c之后,进入具体问题, 打算进入cmd+v流程,但是就会多次卡死:
https://raw.githubusercontent.com/SlRvb/Obsidian--ITS-Theme/main/Snippets/S%20-%20Checkboxes.css
这个页面的内容是我复制的内容,但是我一旦粘贴进入,就很容易假死,
过程中,我可以看到nvim界面中,右下角出现的pasting 状态进度条,但最终还是假死,整个tab 编辑页面,不能用,
我也很是确定我的系统和软件还有终端环境是好的。

hope u reply ,and thks!

Additional information

No response

@nevertoday nevertoday added the enhancement New feature or request label Feb 7, 2023
@ayamir
Copy link
Owner

ayamir commented Feb 7, 2023

Try p in normal mode instead of command+v.

@nevertoday
Copy link
Author

thanks , 'p' works so good !
and how can I upgrade nvimdot to newest with commands?

@ayamir
Copy link
Owner

ayamir commented Feb 7, 2023

Just git pull origin main at ~/.config/nvim if you don't have your custom configurations. Check release note of version 2.0.0 here otherwise.

@nevertoday
Copy link
Author

thanks

@Jint-lzxy
Copy link
Collaborator

@nevertoday Just a bit of background here (if you would like to know more):

If you use <C-v> to paste some texts, vim will not treat this as an instruction (if you use q to record what you did into a register, <C-v> will be ignored). Instead, vim will think that you are entering texts normally one by one. It will run all autocmds and perform most checks (such as adjusting text indentation) in the background. Those keymaps exist only to help users migrate more seamlessly to vim, but it is not intended to let users use them on a large scale. So if possible, try to use native commands instead of those "compatible commands" for better performance.

@Jint-lzxy Jint-lzxy added usage User-specific issues invalid:misc Config independent issue and removed enhancement New feature or request labels Feb 7, 2023
@ayamir ayamir closed this as completed Feb 7, 2023
@Jint-lzxy Jint-lzxy changed the title 大量文本复制的时候,很容易假死,卡死 `<C-v> freezes nvim when pasting a large number of texts Feb 7, 2023
@Jint-lzxy Jint-lzxy added good-first-issue Good for newcomers and removed good-first-issue Good for newcomers labels Feb 7, 2023
@Jint-lzxy Jint-lzxy changed the title `<C-v> freezes nvim when pasting a large number of texts <C-v> freezes nvim when pasting a large number of texts Feb 7, 2023
@CharlesChiuGit
Copy link
Collaborator

CharlesChiuGit commented Feb 8, 2023

Side note: I think this kind of educational infos are really valuable. @ayamir Would u mind me to create a wiki page to list out all gd issues? Since github issue can only pin 3 issues at most.

@ayamir
Copy link
Owner

ayamir commented Feb 8, 2023

Would u mind me to create a wiki page to list out all gd issues? Since github issue can only pin 3 issues at most.

Wonderful idea. I'm glad to see it! 👍

@CharlesChiuGit CharlesChiuGit added good-first-issue Good for newcomers educational Issues that contain useful content labels Feb 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
educational Issues that contain useful content good-first-issue Good for newcomers invalid:misc Config independent issue usage User-specific issues
Projects
None yet
Development

No branches or pull requests

4 participants