Thursday, October 31, 2013

Re: Insert comand output on current text

On Wednesday, October 30, 2013 7:26:44 PM UTC-5, andalou wrote:
> I want to write the ouptut of 1,.s/^# /&/n into the current text.
>
> Let's say that the output of the above command is:
>
> 8 matches on 8 lines
>
>

You can get this output with the :redir command. Put it in the unnamed register:

:redir @"
:your command here
:redir END

Now paste with p

>
> On the current text I'd like to insert the string "ch007.html" (without
>
> quotes) without newlines inserted. Is it possible?
>

This request I don't understand at all. Please give a before-and-after example.

--
--
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

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

No comments: