vim-airline / vim-airline

lean & mean status/tabline for vim that's light as air
MIT License
17.79k stars 1.11k forks source link

Using the <vi - t symbol> command in ctags, it is found that the generated tag list is covered by airline, so that the index list cannot be viewed. #1983

Closed jianghao0302 closed 5 years ago

jianghao0302 commented 5 years ago

environment

if you are using terminal:

expected behavior

  1. Index list can be viewed normally
  2. Index list can be viewed normally

Actual result

  1. Index list can be viewed normally image
  2. Index list cannot be displayed normally image
chrisbra commented 5 years ago

Mask the airline, and use vi - t atomic set command to query the index list of this function. Unshield the airline, and query the index list of this function with the VI - t atomic_set command.

I am not sure what this means, I suppose you want to disable airline and activate it again and test the query.

Besides that, I cannot reproduce the issue. I suppose your terminal (gnome-terminal) is not really xterm compatible. That is not vim-airlines fault. Please try with an uptodate vim (you did not mention the version you used for testing) and also a different terminal

get-me-power commented 5 years ago

@chrisbra I wrote a jianghao0302's minimal vimrc in text here. This will make it easier to copy and paste.

let g:airline_theme='violet'
let g:airline#extensions#branch#enabled = 1
let g:airline#extensions#tabline#enabled=1
let g:airline#extensions#tabline#buffer_idx_mode = 1
let g:airline#extensions#tabline#buffer_nr_show = 1
let g:airline#extensions#tabline#buffer_nr_format = '%s:'
let giairline#extensions#tabline#fnamemod = ':t'
let giairline#extensions#tabline#fnamecollapse = 1
let g:airline#extensions#tabline#fnametruncate = 0
let g:airline#extensions#tabline#formatter = 'unique tail improved'
let g:airline#extensions#default#section_truncate width = {
      \ 'b': 79,
      \ 'x': 60,
      \ 'y': 88,
      \ 'z': 45,
      \ 'warning': 80,
      \ 'error': 80,
      \ }

let g:airline#extensions#default#layout = [
      \ ['a', 'error', 'warning', 'b', 'c' ],
      \ [ 'x', 'y', 'z' ]
      \ ]

let g:airline#extensions#ale#error_symbol = '.'
let g:airline#extensions#ale#warning_symbol = '.'

autocmd User SpacevimAfterUserConfig call s:after_user_config()

function! s:after_user_config() abort
  if !exists('g:airline_powerline_fonts')
    let g:airline left_sep='' let g:airline right sep=''
    if !g:spacevim.os.windows
      let g:airline symbols = g:spacevim#plug#airline#symbols
    endif
  endif
endfunction

let g:airline_powerline_fonts = 1
jianghao0302 commented 5 years ago

Thanks,I will provide my VIM version and terminal version。In addition, I use the liuchengxu/space-vim plug-in integration package. I opened a lot of layers, not until it was caused by skin conflict image .spacevim file: image

chrisbra commented 5 years ago

Please use a minimal vim configuration. I am not going to debug layers of vim plugins.

jianghao0302 commented 5 years ago

Please use a minimal vim configuration. I am not going to debug layers of vim plugins.

Using vim-airline alone didn't find this problem. I provided VIM airline that I used alone. I only added a few plug-ins and didn't use the skin in space vim. Here is my separate vimrc file: Plug 'vim-airline/vim-airline' Plug 'vim-airline/vim-airline-themes' Plug 'ryanoasis/vim-devicons' Plug 'liuchengxu/eleline.vim' Plug 'liuchengxu/vim-better-default'

" airline 配置 " vim-airline { let g:airline_theme='dark' let g:Powerline_symbols='fancy' let g:airline#extensions#branch#enabled = 1 let g:airline#extensions#tabline#enabled=1 let g:airline#extensions#tabline#buffer_idx_mode = 1 let g:airline#extensions#tabline#buffer_nr_show = 1 let g:airline#extensions#tabline#buffer_nr_format = '%s:' let g:airline#extensions#tabline#fnamemod = ':t' let g:airline#extensions#tabline#fnamecollapse = 1 let g:airline#extensions#tabline#fnametruncate = 0 let g:airline#extensions#tabline#formatter = 'unique_tail_improved' let g:airline#extensions#default#section_truncate_width = { \ 'b': 79, \ 'x': 60, \ 'y': 88, \ 'z': 45, \ 'warning': 80, \ 'error': 80, \ } let g:airline#extensions#default#layout = [ \ [ 'a', 'error', 'warning', 'b', 'c' ], \ [ 'x', 'y', 'z' ] \ ] " Distinct background color is enough to discriminate the warning and " error information. let g:airline#extensions#ale#error_symbol = '•' let g:airline#extensions#ale#warning_symbol = '•' autocmd User SpacevimAfterUserConfig call s:after_user_config() function! s:after_user_config() abort if !exists('g:airline_powerline_fonts') let g:airline_left_sep='' let g:airline_right_sep='' if !g:spacevim.os.windows let g:airline_symbols = g:spacevim#plug#airline#symbols endif endif endfunction " }

if has("cscope") set csprg=/usr/bin/cscope set csto=1 set cst set nocsverb " add any database in current directory if filereadable("cscope.out") cs add cscope.out endif set csverb endif

chrisbra commented 5 years ago

so have you tried another terminal? Or an updated vim?

jianghao0302 commented 5 years ago

so have you tried another terminal? Or an updated vim?

There is no problem in using VIM alone. I'm not familiar with other terminals, so I can't debug them. There is no problem with the version of vim, and there is no problem with the support of this plug-in.

I don't know if it's caused by multiple theme plug-ins or status plug-ins.

chrisbra commented 5 years ago

I suggested to test another version, to see whether the problem is still present there. Vim 8.0.1453 is 1.5 years old, there have been many patches and updates accumulated. Current version is 8.1.2197 (at the time of writing). Also as I have said, using xterm-256color as your $TERM when you are in fact not using xterm looks suspicious. So please try with a real xterm (or configure $TERM to use the correct term setting for your terminal).

chrisbra commented 5 years ago

closing as configuration issue.