vim long line slowness
Yes, it is very slow to have a long line copy or move within vim, which mostly due to the syntax highlight
procedure as explained
Just as mentioned, three enhancement methods are:
- Turn off syntax highlighting with
:syntax off
. - Limit syntax highlighting with
:set synmaxcol=150
or some other value. - Break down your long line in smaller chunks with
:s/\s<a/<C-v><Enter><a
.
Method above could address the long line slowness problem, I tested it already.
vim long line slowness
https://rug.al/2014/2014-09-04-vim-long-line-slowness/