[lkml]   [2007]   [Jun]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [OT] Vim highlighting for trailing spaces

    On Jun 28 2007 23:11, Kyle Moffett wrote:
    > I actually prefer this (in .vimrc):
    > " 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

    I prefer this:

    find . -type f -print0 | xargs -0 grep -Pn '[\t ]+$'

    It is editor agnostic, and I do not have to look through all source files for
    highlighted whitespace :-)

    > The script mentioned there *is* good for removing said whitespace, though
    > Cheers,
    > Kyle Moffett

    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2007-06-29 09:43    [W:0.018 / U:6.300 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site