Open SwuduSusuwu opened 1 day ago
"+p
pastes fast, but just 52 lines (out of 202).
This should be relocated to termux/termux-packages
as a bug report, as it appears to be a packaging issue rather than an application issue.
From a quick reading of what you have described it looks like you're running into the differences between the "+
register and the "*
register.
I also notice you are running an out of date version of the Vim package and a Playstore build of Termux either of which may be a contributing factor in the unexpected behavior you are seeing.
I am unable to replicate the issue you are describing in either Vim or Neovim on my device.
Problem description
None of the solutions from https://stackoverflow.com/questions/18258561/pasting-a-huge-amount-of-text-into-vim-is-slow or https://askubuntu.com/questions/221148/vim-struggles-when-copy-pasting-large-blocks-of-text-in-from-an-external-window fix this; have done
:set noswapfile
,:set lazyredraw
,:set paste
,:set syntax=off
,:set foldexpr=''
, but cannot do this.This was a problem for years, with the solution to just use
wget
orfetch
to download the howtos.Steps to reproduce the behavior.
https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html does not look good in
vim
as raw HTML (although you can paste the raw HTML intovim
), thus have pasted its HTML into GitHub (which takes just a few milliseconds to convert it to Markdown), and then pasted that Markdown intovim
(which causes "Termux isn't responding"). [Am sure that this is a crash and not a performance issue, since iIt doesn't matter how long you wait for it to finish, and you cannot use shortcuts to switch to another tab (such as to launch top).] Thought that perhaps a much smaller page would do, thus pasted https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html into GitHub's comment window (to convert it to Markdown), and from that intovim
, which also crashes.What is the expected behavior?
Should allow to paste into vim, should allow to switch tabs to launch top.
Object.html
is just 24kilobytes, thus it should not hang forever; was able to load 4megabyte binaries intovim
in an instant, or to convert those into 16megabyte hexcode which load in a few seconds (so know this is not a performance issue.) It is remarkable how fast Termux + vim is for most uses.System information
but version is not relevent as this was a problem for years (whether you use Termux from F-droid or Google Store).