Monday, January 25, 2010

Re: Possible bug affecting append/insert commands within :global

On Jan 23, 10:16 am, Brett Stahlman <brettstahl...@comcast.net> wrote:
> From the Vim help on :append and :insert...
>
>
>
> When these commands are used with :global or :vglobal then the lines
> are
> obtained from the text following the command.  Separate lines with a
> NL
> escaped with a backslash:
>         :global/abc/insert\
>         one line\
>         another line
> The final "." is not needed then.
> <<<
>
> When I paste the 3 script lines above into a buffer and execute them
> (by sourcing from the buffer to be modified), I get the following
> errors:
>
> Error detected while processing C:/home/.vim/plugin/txtfmt.tut:
> line    2:
> E488: Trailing characters
> line    3:
> E492: Not an editor command: one line\
> line    4:
> E492: Not an editor command: another line
>
> Note: Filetype is unix, and I've even used xxd to verify that the
> backslashes are followed by a single NL, so I know the "Trailing
> characters" error is not caused by an unexpected CR.
>
> 0000000: 3a67 6c6f 6261 6c2f 6162 632f 696e 7365  :global/abc/inse
> 0000010: 7274 5c0a 6f6e 6520 6c69 6e65 5c0a 616e  rt\.one line\.an
> 0000020: 6f74 6865 7220 6c69 6e65 0a              other line.
>
> Is this a bug, or is there an option setting that could be preventing
> the example from working as expected?

Between my having responded several times to my own post, and this
thread having been hijacked by someone attempting to unsuscribe, I'm
thinking this thread might need a bump. Does anyone else get the
errors above when running the example from the help?

Thanks,
Brett Stahlman

...snip...

--
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php

No comments:

Post a Comment