Added a flag for ignoring spaces

Added flag g:indent_guides_enable_on_vim_startup
Controls whether spaces are considered for indent calculating
This commit is contained in:
Ryan Souza
2011-07-31 18:11:04 -07:00
parent 62a2fd103f
commit 9d189306aa
3 changed files with 12 additions and 1 deletions

View File

@@ -46,7 +46,9 @@ function! indent_guides#enable()
let l:hard_pattern = indent_guides#indent_highlight_pattern('\t', l:column_start, s:indent_size)
" define the higlight patterns and add to matches list
call add(w:indent_guides_matches, matchadd(l:group, l:soft_pattern))
if g:indent_guides_space_guides
call add(w:indent_guides_matches, matchadd(l:group, l:soft_pattern))
end
call add(w:indent_guides_matches, matchadd(l:group, l:hard_pattern))
endfor
endfunction