Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to move Vim status bar from bottom to top?

How to configure Vim by editing ~/.vimrc or by other way, so that the status bar can be displayed at the top of the window.

What I mean is the bottom information bar, which appears like index.html 22L,538C written 15,3-9 ALL.

like image 897
Phoenix Avatar asked Jan 15 '12 12:01

Phoenix


2 Answers

Can't be done ...

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

You can put some info in the title, you can read some info from the tabline, but the statusline stays where it is. Sorry :/

like image 125
Rook Avatar answered Oct 21 '22 09:10

Rook


The answer: utilize a (static) "tabline".

vim has tablines (which are located at the top), and a status line (which is located at the bottom), utilize a static tabline for the same functions as the statusline

inside vimrc:

----- begin cut -------
"turn off status line
"set laststatus=0
set ls=0
set showtabline
set tabline="what status line equals, or equaled or whatever"
"set or change the color of the tabline
hi tablinefill cterm=none ctermbg=blue ctermfg=white gui=none guibg=blue guifg=white
------ end cut -------
like image 33
Ariel David Avatar answered Oct 21 '22 08:10

Ariel David