Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

indent don't work with text file #124

Closed
aaryabhatt opened this issue Apr 25, 2017 · 2 comments
Closed

indent don't work with text file #124

aaryabhatt opened this issue Apr 25, 2017 · 2 comments

Comments

@aaryabhatt
Copy link

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
Copy link
Author

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
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants