Yggdroot / indentLine

A vim plugin to display the indention levels with thin vertical lines
MIT License
4.14k stars 230 forks source link

indentline lead to vim very slow when open the file like down,why? #142

Open sunzhusz opened 8 years ago

sunzhusz commented 8 years ago

google_cn = www.google.cn|www.g.cn|173.194.215.115|173.194.215.96|74.125.139.201|74.125.134.201|173.194.215.139|173.194.215.199|64.233.168.200|173.194.215.93|173.194.215.123|173.194.215.103|173.194.215.83|74.125.198.201|74.125.69.201|64.233.162.81|173.194.202.201|64.233.162.84|64.233.162.85|64.233.162.87|74.125.69.200|64.233.162.82|64.233.162.84|64.233.162.85|64.233.162.81|216.58.221.110|216.239.38.123|216.58.221.14|173.194.202.200|64.233.162.86|64.233.162.84|64.233.162.85|173.194.204.118|173.194.203.149|173.194.202.122|173.194.196.166|208.117.225.48|173.194.213.106|64.233.162.82|173.194.202.105|173.194.192.149|208.117.225.37|173.194.202.93|74.125.136.201|173.194.202.118|61.19.1.172|61.19.1.157|173.194.202.195|173.194.214.200|173.194.213.123|173.194.206.86|173.194.203.137|64.233.177.114|173.194.196.149|173.194.202.145|173.194.214.201|173.194.216.144|173.194.38.220|74.125.140.195|61.19.1.232|173.194.203.85|173.194.202.156|208.117.225.50|173.194.202.85|173.194.213.138|173.194.213.199|74.125.20.200|173.194.78.201|194.78.99.53|173.194.203.165|61.19.1.187|173.194.77.201|64.233.181.200|173.194.214.199|173.194.216.97|173.194.203.96|74.125.196.200|74.125.195.195|173.194.202.133|208.117.225.39|173.194.202.81|173.194.203.142|173.194.213.99|74.125.195.200|208.117.225.49|194.78.99.224|194.78.99.46|194.78.99.244|194.78.99.31|194.78.99.82|216.58.220.206|74.125.138.85|216.58.220.174|216.58.220.238|216.58.221.14|216.58.220.206|216.58.221.46|216.58.196.142|64.233.165.201|208.117.225.42|194.78.99.110|194.78.99.38|64.233.189.91|64.233.179.167 google_hk = www.google.com|mail.google.com|www.google.com.hk|www.google.com.tw|www.l.google.com|www2.l.google.com|www3.l.google.com|www4.l.google.com|www5.l.google.com|mail.l.google.com|googleapis.l.google.com|googlecode.l.googleusercontent.com|maps.l.google.com|code.l.google.com|cert-test.sandbox.google.com|173.194.215.115|173.194.215.96|74.125.139.201|74.125.134.201|173.194.215.139|173.194.215.199|64.233.168.200|173.194.215.93|173.194.215.123|173.194.215.103|173.194.215.83|74.125.198.201|74.125.69.201|64.233.162.81|173.194.202.201|64.233.162.84|64.233.162.85|64.233.162.87|74.125.69.200|64.233.162.82|64.233.162.84|64.233.162.85|64.233.162.81|216.58.221.110|216.239.38.123|216.58.221.14|173.194.202.200|64.233.162.86|64.233.162.84|64.233.162.85|173.194.204.118|173.194.203.149|173.194.202.122|173.194.196.166|208.117.225.48|173.194.213.106|64.233.162.82|173.194.202.105|173.194.192.149|208.117.225.37|173.194.202.93|74.125.136.201|173.194.202.118|61.19.1.172|61.19.1.157|173.194.202.195|173.194.214.200|173.194.213.123|173.194.206.86|173.194.203.137|64.233.177.114|173.194.196.149|173.194.202.145|173.194.214.201|173.194.216.144|173.194.38.220|74.125.140.195|61.19.1.232|173.194.203.85|173.194.202.156|208.117.225.50|173.194.202.85|173.194.213.138|173.194.213.199|74.125.20.200|173.194.78.201|194.78.99.53|173.194.203.165|61.19.1.187|173.194.77.201|64.233.181.200|173.194.214.199|173.194.216.97|173.194.203.96|74.125.196.200|74.125.195.195|173.194.202.133|208.117.225.39|173.194.202.81|173.194.203.142|173.194.213.99|74.125.195.200|208.117.225.49|194.78.99.224|194.78.99.46|194.78.99.244|194.78.99.31|194.78.99.82|216.58.220.206|74.125.138.85|216.58.220.174|216.58.220.238|216.58.221.14|216.58.220.206|216.58.221.46|216.58.196.142|64.233.165.201|208.117.225.42|194.78.99.110|194.78.99.38|64.233.189.91|64.233.179.167 google_talk = talk.google.com|talk.l.google.com|talkx.l.google.com google_ipv6 = 2404:6800:4005:807::1003|2404:6800:4005:805::1007|2404:6800:4005:801::1005|2404:6800:4005:806::1001|2404:6800:4008:c00::71|2404:6800:4005:802::1000|2404:6800:4005:806::1002|2404:6800:4005:803::1001|2404:6800:4005:801::100e|2404:6800:4005:800::1000|2404:6800:4005:805::1006|2404:6800:4005:804::1008|2404:6800:4005:800::100f|2404:6800:4000:801::101f|2404:6800:4008:c02::a0

[profile] play.google.com = withgae wenda.google.com.hk = withgae clients.google.com = withgae scholar.google.com = nocrlf,noforcehttps,nofakehttps scholar.google.com.hk = nocrlf,noforcehttps,nofakehttps scholar.google.com.cn = nocrlf,noforcehttps,nofakehttps books.google.com.hk = nocrlf,noforcehttps,nofakehttps webcache.googleusercontent.com = crlf,noforcehttps,nofakehttps mtalk.google.com = direct talk.google.com = google_talk talk.l.google.com = google_talk talkx.l.google.com = google_talk 1-ps.googleusercontent.com = google_cn 2-ps.googleusercontent.com = google_cn 3-ps.googleusercontent.com = google_cn 4-ps.googleusercontent.com = google_cn .google.cn = google_cn .appspot.com = google_hk,crlf .google.com = google_hk,forcehttps,fakehttps .google.com.hk = google_hk,forcehttps,fakehttps .commondatastorage.googleapis.com = withgae .googleapis.com = google_hk,forcehttps,fakehttps .googleusercontent.com = google_hk,forcehttps,fakehttps .googletagservices.com = google_hk,forcehttps,fakehttps .googletagmanager.com = google_hk,forcehttps,fakehttps .google-analytics.com = google_cn,forcehttps,fakehttps .gstatic.com = google_hk,fakehttps .ggpht.com = google_hk,fakehttps .googlegroups.com = google_hk,forcehttps,fakehttps .googlecode.com = google_hk,forcehttps,fakehttps .youtube.com = forcehttps,fakehttps .android.com = google_hk www.dropbox.com = withgae .dropbox.com:443 = direct .box.com:443 = direct .copy.com:443 = direct https?://www.google.com/(?:imgres|url)\?._url=([^&]+) = $1 https?://www.google.com.hk/(?:imgres|url)\?._url=([^&]+) = $1 ; https?://www.example.com/.+.html = file:///C:/README.txt ; https?://www.google.com(.[a-z]{2})?/($|(search|url|gen_204)\?|(complete|images)/) = google_cn ; https?://www.youtube.com/watch = google_hk ; .c.youtube.com = ; .youtube.com = google_hk ; .googlevideo.com =

Yggdroot commented 8 years ago

That is because the file has very long lines. You'd better disable IndentLine for this kind of file.

sunzhusz commented 8 years ago

do you have any way to solve the question?

sunzhusz commented 8 years ago

thank you

ghost commented 8 years ago

Afaik it could not be the indentLine which is causing this degradation on the performance. If you're using vim on 7.3 version you can set the colorcolumn variable and set a limit of the column your colorscheme should be highlighting. If you're using a lower version see this link.

sunzhusz commented 8 years ago

@vyscond ,Afaik this only means indentLine to be unsuitable for long line

sunzhusz commented 8 years ago

thank you @vyscond !

ghost commented 8 years ago

@sunzhusz you're welcome! I had the same problem long before using this awesome plugin :smile:

medvedar commented 8 years ago

Try let g:indentLine_faster = 1. But the syntax of some kinds of file may be broken.

Yggdroot commented 7 years ago

g:indentLine_faster is deprecated now, Please update the plugin, the performance may be better now.

hubl1 commented 7 years ago

Thank you. As soon as a finished the update of the plugin, the performance is much better.