On Tue, Sep 17, 2013 at 12:24 AM, Duncan de Wet <duncande...@gmail.com> wrote:
> On Monday, 16 September 2013 21:47:32 UTC+12, ZyX  wrote:
>
> > This is controlled by formatoptions settings, see :h fo-table. Set 'list' 
> > with 'listchars' containing 'trail:-' to make them easy to spot.
>
> I already have those options set, hence why I noticed the bug in the first 
> place. I cannot find any options in :h fo-table relating to leaving 
> whitespace at the end of lines when wrapping occurs; reasonably so as there 
> is no reason you would want to anyway.

Specifically the w flag causes this behavior. It makes Vim leave
trailing whitespace alone, which allows the user to have some
flexibility when it comes to formatting and Vim's rigid notions of
what a paragraph is.

> > Note that it is not a vim issue. If you take this as a problem it is 
> > problem in your configuration.
>
> It seems like a vim issue to me as it occurs in the PHP filetype but not 
> others, under identical configurations.

Editing a PHP file and checking from where and to what formatoptions
is set with `:verbose set fo?`, I see that w is indeed included, and
it's set from indent/php.vim. So it would appear that you should
contact the maintainer of that file.


--Adnan Zafar

-- 
-- 
You received this message from the "vim_dev" 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

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Raspunde prin e-mail lui