Skip to content
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

How to replace section_y with contents of section_x? #1087

Closed
ronakg opened this issue Mar 10, 2016 · 11 comments
Closed

How to replace section_y with contents of section_x? #1087

ronakg opened this issue Mar 10, 2016 · 11 comments

Comments

@ronakg
Copy link

ronakg commented Mar 10, 2016

This is a question rather than an issue.

I don't want the fileencoding at all. Instead I want the tagbar and filetype in place of it.

I'm not able to figure out how to recreate the contents of section_x in section_y.

I tried following in my ~/.vimrc, but it's not working.

let g:airline_section_y = airline#section#create_right(['tagbar', ' ', 'filetype'])
let g:airline_section_x = ''
@junrrein
Copy link

Adding to this, I can't seem to be able to modify section_y at all.

For example, I tried

let g:airline_section_y = 'foo'

in my .vimrc, but the section still displays the file encoding info.

@bookercodes
Copy link

@junrrein Same.

I'm not sure what changed but I used to be able to remove the file encoding using let g:airline_section_y = ''. I can't anymore 😱

@bookercodes
Copy link

I'm not sure what has happened but I don't think this is a regression.

I tried some older revisions of Airline in Neovim and the problem persists.

@bookercodes
Copy link

What's odd is if I echo g:airline_section_y I see the value I set (an empty string). This would suggest the setting is not being over-written.

@chrisbra
Copy link
Member

This works for me as expected:
http://i.imgur.com/GryUvqa.png

@bookercodes
Copy link

I meant to come back and update this issue but if I remember correctly, I managed to solve this issue by removing vim-dev-icions completely.

@chrisbra
Copy link
Member

okay, closing then.

@dustinblackman
Copy link

To those ending up here from google, the answer to this is setting this in your vimrc. Found here

let g:webdevicons_enable_airline_statusline_fileformat_symbols = 0

@crivotz
Copy link

crivotz commented Apr 19, 2018

@dustinblackman good solution. Thanks

@lgarest
Copy link

lgarest commented Sep 13, 2022

To those ending up here from google, the answer to this is setting this in your vimrc. Found here

let g:webdevicons_enable_airline_statusline_fileformat_symbols = 0

Thanks, this is still happening now

@sartak
Copy link
Contributor

sartak commented Sep 21, 2022

edit: posted to a new issue #2574 since this one is closed.

Setting section y's truncation width to 80 characters (the default size of many terminals) down from the default of 88 worked for me:

let g:airline#extensions#default#section_truncate_width = {
  \ 'b': 79,
  \ 'x': 60,
  \ 'y': 80,
  \ 'z': 45,
  \ 'warning': 80,
  \ 'error': 80,
  \ }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants