Am 13.03.2012 15:57, schrieb Erik Falor:
On Mon, Mar 12, 2012 at 09:01:29PM +0000, Dimitar DIMITROV wrote:
Hi, I don't have the latest version of Vim installed, so this might not be a
real bug.
Please check!
I don't think this is a bug, per se.
1. 60obutter<cr>chocolate<esc> (120 lines)
2. qwq
3. :g/butter/y W
4. at the -- More -- prompt hit q
5. in a new window: "wP
Result: you have copied only half the words (or a screenfull in fact)
:silent g/butter/y W will do it but if you hadn't thought about using :silent,
you would have to use G on the -- More -- prompt in order to have the correct
result.
Hi,
Sorry, forgot to mention that you need :set report=0
Cheers
Next time, you ought to add a remark like this as a reply to the
original message - it really helps those of us using a threaded mail reader,
and will look better for future generations reading this on Gmane :)
After I realized that you had 'set report=0', I understood what
was happening here. You only yank a screenful of lines because by
hitting 'q' you are killing the command that generated all of the
output before it has finished its job. You'll either need to adjust
'report' or become accustomed to hitting <SPACE> repeatedly to page
through the output each time you run a ":" command.
With report=0, each `:.yank' command reports a message:
qwq
:g/butter/y W
=> 1 line yanked
1 line yanked
1 line yanked
...
It's not very useful.
:g and :y should work together to report one message at the end:
qwq
:g/butter/y W
=> 120 lines yanked
:g already works together with other commands:
:g/butter/s/b/B/
=> 60 substitutions on 60 lines
:g/b/d
=> 60 fewer lines
--
Andy
--
--
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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.