Pathgen vim indent-guide not showing

I already had a pathogen installed and works with JSHint and Janus , which works just fine. However, when I try to use the vim-indent-guide plug -in , it does not appear at all.

According to the pathogen, as well as github for vim indentation guides, it would seem that the only really necessary step would be to clone the repository into mine ~/.vim/bundles. I know that the .vimadd-in file must be in the subdirectory pluginsthat I confirmed. My indent guides are set to ~/.vim/bundle/vim-indent-guides/plugin/indent_guides.vim. I also use VIM 7.3, which should mean the version is not a problem.

To test my theory that the pathogen works, I made a file that would explicitly raise a JSHint error JSHint is working just fine

Given that the assumption was proved correctly, I tested whether the files were uploaded using :scriptnamesthe file I edited. Of course, I see two files matching the name

104: ~/.vim/bundle/vim-indent-guides/plugin/indent_guides.vim
105: ~/.vim/bundle/vim-indent-guides/autoload/indent_guides.vim

however, I do not see the visible results of the tabs or intervals in any files.

Perhaps this is a display problem, or Janus is overwriting these additional options, but to be honest, I'm at a dead end. Does anyone have any ideas?

+3
source share
1 answer

I don't have one yet colorscheme, and this is what I added to the file .vimrcafter installation:

...
" Indent Guides Settings                                                        

  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=red   ctermbg=3       
  autocmd VimEnter,Colorscheme * :hi IndentGuidesEven guibg=green ctermbg=4       
  colorscheme default    
...

Good luck.

0
source

All Articles