http://vim.wikia.com/wiki/VimTip396
precondition: set hlsearch
" Show all tabs:
/\t
" Show trailing whitespace:
/\s\+$
" Show trailing whitespace only after some text (ignores blank lines):
/\S\zs\s\+$
" Show spaces before a tab:
/ \+\ze\t
http://vim.wikia.com/wiki/VimTip396
precondition: set hlsearch
" Show all tabs:
/\t
" Show trailing whitespace:
/\s\+$
" Show trailing whitespace only after some text (ignores blank lines):
/\S\zs\s\+$
" Show spaces before a tab:
/ \+\ze\t
转载于:https://www.cnblogs.com/cnblogist/p/6113885.html