preservim / vim-indent-guides

A Vim plugin for visually displaying indent levels in code
MIT License
2.63k stars 166 forks source link

Do not work with vim-less and vim-slim plugins #112

Closed tonygoldcrest closed 5 years ago

tonygoldcrest commented 8 years ago

I've installed vim-slim and vim-less plugins, and there are indent guides everywhere, except files with .slim and .less extension. Here's my .vimrc file, I am autoloading your plugin in that way:

autocmd VimEnter * IndentGuidesEnable
let g:indent_guides_auto_colors = 0
hi IndentGuidesOdd  ctermbg=236 guibg=#202020
hi IndentGuidesEven ctermbg=238 guibg=#333333  
filetype plugin indent on
filetype plugin on

also i've tried to put this lines in ~/.vim/after/plugins/something.vim, but it didn't work.

let g:indent_guides_enable_on_vim_startup = 1 also doesn't solve problem.

But it works if I call :IndentGuidesEnable while editing .slim file.

reubano commented 8 years ago

same thing for me with jade and styl files. : IndentGuidesEnable works, but as soon as you navigate to a new buffer and back, the guides are gone again.

tonygoldcrest commented 6 years ago

@reubano, you should use neovim instead. Everything works perfectly in neovim.

reubano commented 6 years ago

Thanks, i'll check it out!