-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Advice to shorten statusline #1309
Comments
I just added a commit to document that variable
|
With #a69834 you can now set |
Thanks for that commit, that's fantastic! It works very well. However, I couldn't change the word count format. I set the following in
I then restarted vim, but it was still showing the default Also, you might have missed my edits to the original post. Essentially, I attempted to compact the z section with
However, after restarting vim, nothing is displayed on the right side of the statusbar until I move the cursor. If I remove this line in |
I cannot reproduce this behaviour. |
Hmm… I thought that my differing behaviour might be from one of my 16 other vim plugins conflicting with vim-airline, so I uninstalled them all, then pared down
However, vim is still showing the default
I'm not sure how to troubleshoot further. I also tested modifying the z section by adding the following to
This actually worked now. I reinstalled all my plugins and restored
(Oddly enough with my full |
For hiding the utf 8 encoding along with devicon that shows up there I did this let g:airline_section_y = '' │ 6
let g:webdevicons_enable_airline_statusline_fileformat_symbols = 0 |
@PezCoder That's not exactly what I was after. As per the original post, I wanted to hide encoding only if it's |
@protist according to the code, to change the wordcount format, you shall use:
|
@matclab Thanks for the suggestion. I'm not sure how, but that hard-coded the word count to |
environment
if you are using terminal:
if you are using Neovim:
actual behavior
I'm find the statusline a little cramped when I tile terminal windows horizontally, and I have long filenames and/or long (tagbar) sections. Hence, I'm attempting to shorten the statusline.
I've so far reduced the size of the mode indicator with
I've also reduced the z section by six characters by removing some of the special characters and spacing, and reducing some leading space.
desired behavior
However, there's potentially two other regions that I could probably abbreviate.
utf-8[unix]
show in the statusline. Is there a way to remove this if it'sutf-8[unix]
, and show it if it's a different string?let g:airline#extensions#wordcount#enabled = 1
. This now shows (e.g.)1,570 words
in the statusbar. Is there a way to save 4 characters by abbreviatingwords
tow
?edit
And I just realised that my
g:airline_section_z
modification doesn't work so well. Nothing is displayed in the file until I move the cursor. If I remove this line, then the z section displays immediately on opening a file.The text was updated successfully, but these errors were encountered: