vim-indent-guides icon indicating copy to clipboard operation
vim-indent-guides copied to clipboard

Indent guides don't appear when second tab is opened

Open kskollepara opened this issue 6 years ago • 3 comments
trafficstars

Indents appear perfectly fine when I open a single file. However, if I open a second file using tabe, then I lose indent guides in both files. Is this a bug or am I doing something wrong? My vimrc has a single line related to indent guides:

let g:indent_guides_enable_on_vim_startup = 1

and my python.vim has following lines:

let g:indent_guides_auto_colors = 0
autocmd VimEnter,Colorscheme * :hi IndentGuidesOdd  guibg=red   ctermbg=3
autocmd VimEnter,Colorscheme * :hi IndentGuidesEven guibg=green ctermbg=4

Single Tab view: 1

Multiple tab view: 2

kskollepara avatar Sep 17 '19 13:09 kskollepara

Very strange. I'm unable to reproduce the problem on my end.

nathanaelkane avatar Sep 17 '19 22:09 nathanaelkane

Maybe you could reproduce it with my python.vim and vimrc. If you need to look at my .vim folder, I have included the tree output of the folder python.vim.txt vim_folder_structure.txt vimrc.txt

kskollepara avatar Sep 19 '19 09:09 kskollepara

The pics I posted were for the python scripts. I checked if the problem persists for other formats by including the same settings in my latex files. Surprisingly, in case of tex files, opening a second tab changed the colour to gray, but still displayed the indents. Don't know if this is useful. See the screenshots below With only one tab : image After opening a second tab: image

EDIT: I think it has something to do with the colorscheme.

kskollepara avatar Jan 22 '20 14:01 kskollepara