The attached video demonstrates the problem, and how it is not evident in other filetypes such as C.
On Sep 16, 2013 11:15 AM, "Duncan de Wet" <dunca...@gmail.com> wrote:
>
> In the PHP filetype (and possibly others) trailing whitespace is left at the end of comment lines that are wrapped as a result of the textwidth setting.
This is controlled by formatoptions settings, see :h fo-table. Set 'list' with 'listchars' containing 'trail:-' to make them easy to spot.
Note that it is not a vim issue. If you take this as a problem it is problem in your configuration.
And also please do not include 1.5 MiB files as attachements. To show a problem you should write a script that starts with omitting your user configuration (e.g. 'vim -u attached-vimrc' (that contains &rtp setting that omits non-standard plugins) or 'vim -u NONE').
> The attached video demonstrates the problem, and how it is not evident in other filetypes such as C.
>
> --
> --
> 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+u...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
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.
> 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.
> And also please do not include 1.5 MiB files as attachements. To show a problem you should write a script that starts with omitting your user configuration (e.g. 'vim -u attached-vimrc' (that contains &rtp setting that omits non-standard plugins) or 'vim -u NONE').
OK sorry, just thought a video would demonstrate the problem well.
Is this not the right place to contact the maintainer of that file?
| Duncan de Wet
Never mind, I have found the Github page for that filetype so have done a pull>
> Is this not the right place to contact the maintainer of that file?
>
> | Duncan de Wet
request there.
There is a mirror for all scripts on github. It is populated automatically from www.vim.org contents.
> HTH,
> David