On Fri, June 15, 2012 06:46, Nick Shyrokovskiy wrote: > Hi. > When I print result of the execution of global command into register: > > :redir @a > :g/pattern/ > :redir END > > and then insert the register in buffer > > "ap > > I get only the first line of the result, when screen output is multiline.
Do you mean, you see something different, than what is redirected? I can't reproduce this. Or may be you are seeing the issue, that is discussed here: http://groups.google.com/group/vim_use/msg/3b41562c94c13279 quoting: ,---- | The global commands work by first scanning through the [range] lines and | marking each line where a match occurs (for a multi-line pattern, only | the start of the match matters). `---- Which means, for a multi-line pattern, this prints only the first line of the matching pattern. But see the mentioned thread for alternatives. regards, Christian -- You received this message from the "vim_use" 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
