sponsor Vim development Vim logo Vim Book Ad

IndentHL : Vim Syntax Highlighting for indent whitespace

 script karma  Rating -2/6, Downloaded by 853  Comments, bugs, improvements  Vim wiki

created by
Vedran Sajko
 
script type
syntax
 
description
Tabs and spaces are colored in slightly different colors from lightest to
darkest for dark background or from darkest to lightest for light background
example (x is darkest color and z lightest):

    function foo()
    x if b
    x y echo 'something'
    x y while c
    x y z echo 'something else'
    x y endwhile
    x endif
    endfunction
    
Actually it forms vertical stripes

You can switch it off and on by
   :call OnOffIndentHi()
 
install details
Put script in  ~/.vim/after/syntax/php.vim
               or
               ~/.vim/after/syntax/c.vim
               and
               ~/.vim/after/syntax/php.vim
               and
               ~/.vim/after/syntax/vim.vim
               and
               ~/.vim/after/syntax/html.vim
                                                    
I haven't test it with other syntaxes but hopefully works
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
IndentHL.vim 0.2 2004-07-07 6.0 Vedran Sajko support for light background,
corrected some bugs
and some checking added
IndentHL.vim 0.1 2004-07-06 6.0 Vedran Sajko Initial upload
ip used for rating: 3.144.248.24

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
Vim at Github