forked from aniani/vim
Problem: The matchparen plugin is slow on a long line.
Solution: Don't use a regexp to get char at and before cursor.
(zeertzjq)
Example:
```vim
call setline(1, repeat(' foobar', 100000))
runtime plugin/matchparen.vim
normal! $hhhhhhhh
```
closes: #15568
Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
11 lines
220 B
Plaintext
11 lines
220 B
Plaintext
|a+0&#ffffff0@7|(*0(ffff15| +0&#ffffff0@64
|
||
|b@3|)*0(ffff15> +0&#ffffff0@68
|
||
|~+0#4040ff13&| @73
|
||
|~| @73
|
||
|~| @73
|
||
|~| @73
|
||
|~| @73
|
||
|~| @73
|
||
|~| @73
|
||
|-+2#0000000&@1| |I|N|S|E|R|T| |-@1| +0&&@44|2|,|8|-|7| @8|A|l@1|
|