mirror of
https://github.com/vim-airline/vim-airline.git
synced 2024-11-26 02:09:48 +08:00
give gui users some love.
This commit is contained in:
parent
cf798d8783
commit
2051dfb9a1
|
@ -35,8 +35,6 @@ Automatically displays all buffers when there's only one tab open. This is disa
|
|||
|
||||
![tabline](https://f.cloud.github.com/assets/306502/1072623/44c292a0-1495-11e3-9ce6-dcada3f1c536.gif)
|
||||
|
||||
Note: This extension only works in terminal vim at the moment.
|
||||
|
||||
## Seamless integration
|
||||
|
||||
vim-airline integrates with a variety of plugins out of the box. These extensions will be lazily loaded if and only if you have the other plugins installed (and of course you can turn them off).
|
||||
|
|
|
@ -5,6 +5,9 @@ let s:fmod = get(g:, 'airline#extensions#tabline#fnamemod', ':p:.')
|
|||
let s:excludes = get(g:, 'airline#extensions#tabline#excludes', [])
|
||||
|
||||
function! airline#extensions#tabline#init(ext)
|
||||
if has('gui_running')
|
||||
set guioptions-=e
|
||||
endif
|
||||
set showtabline=2
|
||||
set tabline=%!airline#extensions#tabline#get()
|
||||
|
||||
|
|
|
@ -302,7 +302,7 @@ virtualenv <https://github.com/jmcantrell/vim-virtualenv>
|
|||
* configure filename match rules to exclude from the tabline. >
|
||||
let g:airline#extensions#tabline#excludes = []
|
||||
<
|
||||
Note: This extension only works in terminal vim at the moment.
|
||||
Note: Enabling this extension will modify |showtabline| and |guioptions|.
|
||||
|
||||
==============================================================================
|
||||
ADVANCED CUSTOMIZATION *airline-advanced-customization*
|
||||
|
|
Loading…
Reference in New Issue
Block a user