long-statusline's People
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.