KB: Highlight unwanted chars in vim editor
Source: vim.wikia.com
Show all tabs:
1/\t
Show trailing whitespace:
1/\s\+$
Show trailing whitespace only after some text (ignores blank lines):
1/\S\zs\s\+$
Show spaces before a tab:
1/ \+\ze\t
Source: vim.wikia.com
Show all tabs:
1/\t
Show trailing whitespace:
1/\s\+$
Show trailing whitespace only after some text (ignores blank lines):
1/\S\zs\s\+$
Show spaces before a tab:
1/ \+\ze\t