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
    Commented Mar 1, 2016 at 9:10
  • 2
    @Nobe4 Looks like from that link it may not be possible.
    – alex
    Commented Mar 1, 2016 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). Commented Mar 1, 2016 at 18:05

4 Answers 4


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
    Commented Mar 1, 2016 at 15:15
  • @Nobe4, not to my knowledge.
    – romainl
    Commented Mar 1, 2016 at 15:18

I finally found a way to get rid of the command, mode as well as file name in the command line bar!

at the bottom of your .vimrc:

set noshowmode  " to get rid of thing like --INSERT--
set noshowcmd  " to get rid of display of last command
set shortmess+=F  " to get rid of the file name displayed in the command line bar

notice that this piece of code should be at the bottom of your .vimrc or it may not works.

  • 3
    If you have to put these configs at the bottom of your vimrc it is because something else overrides them in your vimrc. It might be a plugin or something else, to check what it is you can use :verbose set showmode?.
    – statox
    Commented Sep 2, 2019 at 8:07

In Vim 9.0.0114–9.0.0339 and Neovim 0.8 (prerelease), set cmdheight=0 hides the command line. Zero cmdheight was removed in Vim 9.0.0340.


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) Commented Mar 2, 2016 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). Commented Mar 2, 2016 at 3:25
  • 1
    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
    Commented Mar 1, 2017 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? :) Commented May 17, 2017 at 21:20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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