Code Monkey home page Code Monkey logo

Comments (6)

g1ra avatar g1ra commented on June 11, 2024 32

adding
colorscheme default
to .vimrc
SOLVED the problem for me.

from vim-indent-guides.

nathanaelkane avatar nathanaelkane commented on June 11, 2024

Sounds like you're not using a colorscheme, or your colorscheme isn't defining colours for the Normal highlight group.

Try using a different colorscheme, or manually defining the indent guide colours:

let g:indent_guides_auto_colors = 0
hi IndentGuidesOdd  guibg=red   ctermbg=3
hi IndentGuidesEven guibg=green ctermbg=4

from vim-indent-guides.

ImprovedSilence avatar ImprovedSilence commented on June 11, 2024

I have the same errors. I manually defined my indent guide colors, but I still get the error upon calling :IndentGuidesToggle. The even lines don't highlight. I am using Terminal.app in OSX, with color scheme set through their gui preferences, and and transparency set. I'll play around with my settings to see if I can figure out whats causing the muckup.

from vim-indent-guides.

ehsanul avatar ehsanul commented on June 11, 2024

I had the same problem in Terminal.app/OSX, with the default colorscheme. But if I specify "colorscheme default" in my .vimrc and restart vim, the problem goes away. Worked with other colorschemes too of course.

from vim-indent-guides.

LukeGT avatar LukeGT commented on June 11, 2024

@g1ra, your solution worked, thankyou!

from vim-indent-guides.

dalguji avatar dalguji commented on June 11, 2024

Adding to g1ra's comment, my solution was as below in .vimrc with OSX Terminal.app (and Novel theme). Hope this helps anyone with the same issue.

colorscheme default
Plugin 'nathanaelkane/vim-indent-guides'
let g:indent_guides_enable_on_vim_startup = 1 
let g:indent_guides_auto_colors = 0 
let g:indent_guides_guide_size = 1 
autocmd VimEnter,Colorscheme * :hi IndentGuidesOdd guibg=darkgrey ctermbg=252
autocmd VimEnter,Colorscheme * :hi IndentGuidesEven guibg=darkgrey ctermbg=251

from vim-indent-guides.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.