[Vim-l] New code guidelines (use <pre>...</pre>)

Olivier Teuliere ipkiss at gmail.com
Sun Aug 5 12:45:24 UTC 2007


On 8/4/07, John Beckett <johnb.beckett at gmail.com> wrote:
> One thing I found was that when you copy text out of the displayed code
> block, there is an irritating trailing space on each line when you use the
> "space prefix" method. But when I documented this in the new Code_guidelines
> above, my example did NOT behave in that manner (there was no trailing
> space).

The trailing spaces often come from the original tips on vim.org. This
is not related to the space prefix. The tip you gave as example has
this problem (this is easily visible if you use vim to edit the tips,
and if you use the 'list' option).

To remove all the trailing spaces and tabs with vim, you can use:
:%s/\s\+$//

Cheers,
-- 
Olivier


More information about the Vim-l mailing list