Code Monkey home page Code Monkey logo

Comments (4)

bling avatar bling commented on May 30, 2024 1

that makes a big difference. if possible, can you add a g:indentLine_maxLines or something to disable indent lines for big files? thanks.

from indentline.

Yggdroot avatar Yggdroot commented on May 30, 2024

I have tried opening a 100000 lines file, performance is fine just like opening a file with 100 lines(my cpu is P9700). Can you make sure it's this plugin causes this issue?

from indentline.

bling avatar bling commented on May 30, 2024

i stripped my vimrc down to the bare minimum:

set nocompatible
set rtp+=~/.vim/bundle/neobundle.vim/
call neobundle#rc(expand('~/.vim/bundle/'))
syntax on
NeoBundleFetch 'Shougo/neobundle.vim'
NeoBundle 'Yggdroot/indentLine'

and as a test i opened jquery.js, which is 9400 lines, and vim lagged for about 3 seconds (my guess is depending on the source and how many indents it affects the performance). i'm running on OSX if that makes a difference.

i also may have omitted important information. after opening the file, i hit G to scroll to the end of the file, and that's when the lag is most noticeable.

from indentline.

Yggdroot avatar Yggdroot commented on May 30, 2024

I get your point. But I think it's inevitable for big file as yours. Setting g:indentLine_indentLevel to a smaller value can improve a little. the default value is 20, may be you can let g:indentLine_indentLevel = 5.

from indentline.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.