Saturday, November 26, 2011

Re: strip whitespace and carriage returns from end of file

On Sat, Nov 26, 2011 at 10:03 AM, Thilo Six <T.Six@gmx.de> wrote:
> John Beckett wrote the following on 25.11.2011 23:26
>
> -- <snip> --
>> You could muck about with a search pattern using \r to match CR,
>> however it would be better to investigate why there are trailing
>> CRs. Procedures are discussed at:
>>
>> http://vim.wikia.com/wiki/File_format

I know I'm putting the ending carriage returns in there. I write
mostly prose and due to editing and shifting text I end up with blank
lines at the end of the file... so their appearance is my fault, but
stripping them away doesn't hurt and I'd like a quicker way of
cleaning them up...

c
--
Chris Lott

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments:

Post a Comment