preservim / vim-indent-guides

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

indent don't work with text file #124

Closed aaryabhatt closed 7 years ago

aaryabhatt commented 7 years ago

Hi,

I am able to run indent with below setting with .haml filetype

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 autocmd FileType haml :IndentGuidesEnable

but when I try to declare text file or perl filetype than it did not work, is there a way that I can declare it for every file i open on ubuntu.

-- Thanks Amit Bondwal

aaryabhatt commented 7 years ago

solved it my current working code with color scheme is

colorscheme badwolf
set ts=1 sw=1 et
let g:indent_guides_auto_colors = 0
let g:indent_guides_start_level = 2
let g:indent_guides_guide_size = 1
let g:indent_guides_color_change_percent = 3
let g:indent_guides_enable_on_vim_startup = 1
autocmd VimEnter,Colorscheme * :hi IndentGuidesOdd ctermbg=236
autocmd VimEnter,Colorscheme * :hi IndentGuidesEven ctermbg=237
nathanaelkane commented 7 years ago

Glad to hear it, thanks for the update. :)