vim-airline - hide filetype in statusbar
Asked Answered
G

1

6

I would like to know how to hide the filetype in the statusbar in vim. For example when I open a .tex-File vim is showing me it is a "tex" file. I don't want this.

My statusline looks like this:

NORMAL>SPELL>git master> "filename"...< "filetype"< "encoding"<...

and I would like to remove the "filetype" part

for example:

NORMAL>SPELL>git master> main.tex ...< tex < utf-8[unix] <...

I also would like to know how to remove the "<" that would stay after removing the filetype (have several triangles left where I removed stuff like trailing and so on because I have no clue what the attribute names are which i have to set 0)

Gel answered 17/7, 2017 at 7:52 Comment(0)
G
14

I found out how to do it, earlier this day I didn't get the help part of vim-airline to do this the solution is:

" remove the filetype part
let g:airline_section_x=''
" remove separators for empty sections
let g:airline_skip_empty_sections = 1
Gel answered 17/7, 2017 at 17:35 Comment(2)
can you provide a screenshot with the seperator you got still left?Forepleasure
I restarted all my tmux sessions and the outer left seperator in the tabbar on top of vim disappeared as it should be. Will edit my answer.Gel

© 2022 - 2024 — McMap. All rights reserved.