7

I am using vim-airline and it's really nice.

vim statusbar screenshot

However, I get that second status bar below it which I want to hide.

I have tried set noshowmode in my .vimrc, but that only seemed to hide the default mode indicator.

Obviously the filename there is redundant (airline covers it) and the lines and char count aren't so useful to me.

Also, if I hide it, will it come back if I use echoe "hello" in my .vimrc?

My .vimrc

  • Hi, does this provide help stackoverflow.com/a/8096378/2558252 ? – nobe4 Mar 1 '16 at 9:10
  • 2
    @Nobe4 Looks like from that link it may not be possible. – alex Mar 1 '16 at 9:17
  • 1
    not possible. One is called a statusline, the other is the commandline. It is not possible to hide the commandline (and it wouldn't make sense anyhow). – Christian Brabandt Mar 1 '16 at 18:05
7

No, it's impossible to hide the command-line.

-- EDIT --

You can prevent Vim from echoing "filename" XXXL, XXXC when editing a file by prepending silent to e:

:silent e foo
  • Does any help article relate to this ? – nobe4 Mar 1 '16 at 15:15
  • @Nobe4, not to my knowledge. – romainl Mar 1 '16 at 15:18
2

You hide the redundant line by setting laststatus to 1. Then airline goes away unless you have a split. You might be able to make airline set the rulerformat or set it to something else you like (and you probably need to set ruler as well).

  • 2
    I don't think the OP is talking about the status line. (airline) – EvergreenTree Mar 2 '16 at 3:15
  • The OP wants to get rid of the redundant line. Removing the status line is easy, removing the command line is likely not possible (nor particularly useful unless you never leave insert mode). – dash-tom-bang Mar 2 '16 at 3:25
  • What about hiding it unless you're in command or ex mode? I'd like to hide it while in normal, visual, and insert, for example. Alternatively, maybe hide it as long as it's empty, then manually remove elements made redundant by airline? – John P Mar 1 '17 at 3:46
  • I suppose I don't see why Airline is necessary here; if your goal is to get rid of redundant data then certainly it shouldn't matter which of the data gets hidden? :) – dash-tom-bang May 17 '17 at 21:20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.