Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

when using multiple splits in a window I keep looking at the top of the split (window) to see what file is in there. just can't force myself to change the habit, as it is re-enforced by any other program out there. tabs are usually at the top...

anyway, is there a way to put the statusline on top?

share|improve this question
? You could just do :e right? Doesn't that tell you what file you are writing to, how many lines it is, etc. in the command/status bar at the bottom? Hmm, :f works, too. Also ctrl + g works the same as :f – dylnmc May 17 '15 at 7:25
up vote 3 down vote accepted

Nope ....

well, you can always download vim's sources, and go from there, but natively, no. Not that I know.

However, you say, you're looking at the top of the split to see what file is in there ? Why is that ? You can easily put all the buffer / file information in your statusline, and display it for every split out there (laststatus=2).

As far as tabs go, they were introduced under some pressure on vim's creator, but are rarely encouraged, as the way which to handle files in vim. Vim's "natural" way has always been window split + buffer manipulation.

share|improve this answer
I already have laststatus=2 and it does include the the filename. but when I have multople splits and I'm looking at the status line between 2 vertical splits, my instincts (conditioned by years of using tabs which are on top) associate the file name with the split that is at the bottom, not at the top and I need to consciously correct it all the time, which is kind of annoying :) – Vitaly Kushner Feb 23 '10 at 3:16
@Vitaly Kushner - yeah, sorry, no help there. Leave the question open for a while; there are a few very knowledgable vimmers in here, but I think on this, they'll tell the same. The only thing apart from what is written, which I can recommend in that situation, is maybe turning off the statusline (for but the active window) and relying on the tab line for the filename. Also the statusline that way, is a good indicator of both activity and the current file. – Rook Feb 23 '10 at 3:37

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .