Giter Club home page Giter Club logo

long-statusline's People

Contributors

man9ourah avatar

Stargazers

 avatar

Watchers

 avatar  avatar

long-statusline's Issues

Fix for better perfomance

First of all I wanted to congratulate you for your statusline, I am using it as a template for creating my statusline.

I belive that you can increase the performance with this FIX:

    function s:UpdateWinStl() " {{{
      " Status lines manager
      let l:bottomRightWin = winnr('$')
      let l:taglistWin = 0

      let l:winnr = winnr()
      for n in range(0, bottomRightWin)
        if n!=l:winnr
          let l:bufnum = winbufnr(n+1)
          let l:winbufname = bufname(l:bufnum)
          let l:winid = win_getid(n+1)
          let l:isPrv = getwinvar(n+1, "&pvw")
          let l:isHelp = getbufvar(l:winbufname, "&ft") ==# "help"
          let l:isQf = getwinvar(n+1, '&syntax') == 'qf'

          if l:isPrv || l:isHelp || l:isQf
            " Set straight line
            call setwinvar(n, '&statusline',
                  \ "%#StraightLine#%{" .
                  \ "repeat('_',\ winwidth(win_id2win(".l:winid.")))" .
                  \ "}")
          else
            " Other windows status lines
            call setwinvar(n+1, '&statusline', "%!SetStatusLine(".l:winid.")")
          end
        endif
      endfor
    endfunction   " }}}

In this way update the StautsLine only for curret buffer, it's not necessary update all buffer every time, i start the for loop from 0 because when startup Vim the first buffer is 0

I hope this is right, in my case work fine.

I have another question, what is work colorscheme?

Thanks so much

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.