[blfs-dev] Large commit

Randy McMurchy randy at linuxfromscratch.org
Mon Feb 11 11:04:02 PST 2013

Randy McMurchy wrote these words on 02/11/13 12:55 CST:
> I just ran my script that cleans up extraneous spaces from blank lines and
> at the end of lines in all the .xml files.

If you use Vim to edit the book's .xml, you can add the following lines
to your /etc/vimrc file and it will show in red any extraneous spaces in
the .xml. I find it handy as it makes it easy to keep the files clean.

" Catch trailing whitespace and highlight them
highlight ForbiddenWhitespace ctermbg=red guibg=red
match ForbiddenWhitespace /\s\+$\|\t/
" Do not highlight spaces at the end of line while typing on that line
autocmd InsertEnter * match ForbiddenWhitespace /\t\|\s\+\%#\@<!$/


rmlscsi: [bogomips 1003.23] [GNU ld version 2.16.1] [gcc (GCC) 4.0.3]
[GNU C Library stable release version 2.3.6] [Linux i686]
12:59:00 up 67 days, 22:58, 1 user, load average: 0.03, 0.17, 0.11

More information about the blfs-dev mailing list