aserebryakov / filestyle

filestyle is a Vim plugin that highlights unwanted whitespace and characters.

Home Page:http://www.vim.org/scripts/script.php?script_id=5065

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

\t\t\s\t\t is highligted only till the first space

dhyannataraj opened this issue · comments

I am using filstyle without expandtab

I found out that if I mix spaces and tabs in indention then this mix will be highlighted only till the first space in that mixture. The rest of the empty space would be black.

I do not see it is as a good behavior, as if i do \s\t\t\t\t\t only one character will be highlighted so it would be a bit difficult to notice the problem.

The second issue, if somebody will write \s\t\s\t\s\t\s\t\s\t I would not be able to see the whole problem form the start, I will see next problematic space only after deleting the previous one.

So my suggestion is the following: If there is a problem is indention the whole indention is highlighted as yellow. And all problematic characters are highlighted in red. It should work in this way both with expandtab and without. Expandtab just changes what characters are considered wrong.