remove bufferline echo integration, must be done on startup

This commit is contained in:
Bailey Ling 2013-07-06 18:01:32 +00:00
parent e0fe9ce7d4
commit 53537c121d
2 changed files with 7 additions and 10 deletions

View File

@ -28,15 +28,17 @@ i wrote the initial version on an airplane, and since it's light as air it turne
# faq/troubleshooting
1. the powerline font symbols are not showing up
* the powerline font symbols are not showing up
* the older deprecated [vim-powerline][a] uses different codes compared to the newer [powerline][b].
* you can grab prepatched fonts at [powerline-fonts][c], or you can manually set the relevant `g:` variables
2. there is a pause when leaving insert mode
* there is a pause when leaving insert mode
* you need to set `ttimeoutlen` to a low number; 50 is recommended
3. you get the error `Unknown function: fugitive#head`
* you get the error `Unknown function: fugitive#head`
* you are probably using version 1.2, which is very old...download v2 from the [project page][d].
4. airline doesn't appear until i create a new split
* airline doesn't appear until i create a new split
* add `set laststatus=2` to your vimrc
* bufferline is printing to the statusline as well as the command bar
* you can disable automatic echoing by adding `let g:bufferline_echo = 0` to your vimrc
# bugs

View File

@ -21,10 +21,6 @@ call s:check_defined('g:airline_modified_detection', 1)
call s:check_defined('g:airline_exclude_filenames', ['DebuggerWatch','DebuggerStack','DebuggerStatus'])
call s:check_defined('g:airline_exclude_filetypes', ['qf','netrw','diff','undotree','gundo','nerdtree','tagbar'])
if g:airline_enable_bufferline
let g:bufferline_echo = 0
endif
let s:is_win32term = (has('win32') || has('win64')) && !has('gui_running')
let s:load_the_theme = g:airline#themes#{g:airline_theme}#normal
@ -58,7 +54,7 @@ function! s:highlight(modes)
if s:is_win32term
let colors = map(colors, 'v:val != "" && v:val > 128 ? v:val - 128 : v:val')
endif
let cmd = printf('hi %s %s %s %s %s %s %s',
exec printf('hi %s %s %s %s %s %s %s',
\ s:airline_highlight_map[key],
\ colors[0] != '' ? 'guifg='.colors[0] : '',
\ colors[1] != '' ? 'guibg='.colors[1] : '',
@ -66,7 +62,6 @@ function! s:highlight(modes)
\ colors[3] != '' ? 'ctermbg='.colors[3] : '',
\ colors[4] != '' ? 'gui='.colors[4] : '',
\ colors[4] != '' ? 'term='.colors[4] : '')
exec cmd
endif
endfor
endfor