2012-01-15 18 views
12

如何通過編輯~/.vimrc或其他方式配置Vim,以便狀態欄可以顯示在窗口的頂部。如何從下往上移動Vim狀態欄?

我的意思是底部的信息欄,它看起來像index.html 22L,538C written 15,3-9 ALL

+0

謝謝你注意到我!對不起,我是新來的stackoverflow,我重新說誰現在幫助我的人。 – Phoenix 2012-01-15 13:07:21

+2

重複:http://superuser.com/questions/112222/is-it-possible-to-have-the-status-line-on-top-of-the-window和offtopic。 – 2012-01-15 13:50:49

+5

@ZsoltBotykai - 這是一個重複的,是的,但它不是offtopic。 Vim提出的問題超出了普通用戶的使用範圍,在這裏完全是主題。 – Rook 2012-01-15 20:50:15

回答

8

不能做......

我的意思是,你可以下載Vim的來源,並從那裏走,因爲它本身就沒有。不是我所知道的。

您可以在標題中放入一些信息,您可以從標線中讀取一些信息,但狀態線會保留它的位置。對不起:/

+5

在vim的近乎無限的配置選項中,超級驚訝的是最後一行不能移動到頂端。 – 2013-06-05 20:23:44

10

答案:利用(靜態)「tabline」。

vim具有tablines(位於在頂部),和狀態線(它位於在底部),利用用於相同功能的靜態tabline如狀態行

內部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 ------- 
+0

謝謝,但它是靜態的,那太難過了 – 2017-10-31 23:59:46