VIM
VIMの設定
.vimrc
set list listchars=tab:\#;,trail:\#
" Show trailing whitespace and spaces before tabs
hi link localWhitespaceError Error
au Syntax * syn match localWhitespaceError /\(\zs\%#\|\s\)\+$/ display
au Syntax * syn match localWhitespaceError / \+\ze\t/ display
highlight WhitespaceEOL ctermbg=red guibg=red
match WhitespaceEOL /\s\+$/
set nofsync
highlight WhitespaceEOL ctermbg=red guibg=red
match WhitespaceEOL /\s\+$/
:highlight RedundantSpaces ctermbg=red guibg=red
:match RedundantSpaces /\s\+$\| \+\ze\t/
set nocompatible
set number
references
https://lists.linux-foundation.org/pipermail/kernel-janitors/2005-April/013281.html
http://lkml.org/lkml/2007/6/29/124
http://www15.ocn.ne.jp/~tusr/vim/vim_setting.html
http://www14.plala.or.jp/campus-note/vine_linux/operation/vi.html
http://espion.just-size.jp/archives/06/034090759.html