skip toggling ctrlspace tabline plugin

This commit is contained in:
Shohei Fujii 2017-10-16 17:33:40 +09:00
parent 27acd851a7
commit 7bf1d9b1fb
1 changed files with 6 additions and 2 deletions

View File

@ -31,14 +31,18 @@ function! s:toggle_off()
call airline#extensions#tabline#autoshow#off() call airline#extensions#tabline#autoshow#off()
call airline#extensions#tabline#tabs#off() call airline#extensions#tabline#tabs#off()
call airline#extensions#tabline#buffers#off() call airline#extensions#tabline#buffers#off()
call airline#extensions#tabline#ctrlspace#off() if s:ctrlspace
call airline#extensions#tabline#ctrlspace#off()
endif
endfunction endfunction
function! s:toggle_on() function! s:toggle_on()
call airline#extensions#tabline#autoshow#on() call airline#extensions#tabline#autoshow#on()
call airline#extensions#tabline#tabs#on() call airline#extensions#tabline#tabs#on()
call airline#extensions#tabline#buffers#on() call airline#extensions#tabline#buffers#on()
call airline#extensions#tabline#ctrlspace#on() if s:ctrlspace
call airline#extensions#tabline#ctrlspace#on()
endif
set tabline=%!airline#extensions#tabline#get() set tabline=%!airline#extensions#tabline#get()
endfunction endfunction