On 14/02/2016 05:16 p.m., Sam Burk wrote:
> On Feb 14, Cesar Romani wrote:
>> On 14/02/2016 11:25 a.m., Sam Burk wrote:
>>
>> I already put an escape after the O, but it didn't show up in the email
>> message. Using <Escape> and <cr> it'd be
>> map ,p :g/^\d\+\.$/normal O<Escape>jVjjJ<cr>
>>
>> It works, but only for the last line, not for all lines which contain
>> the pattern ^\d\+\.$
>> That's strange!
>
> Hmm... Could you give an example of the text you're working with and
> what you expect the output to be?
Thanks for your answer. For example, on the following text (without the
dashes):
----------
aaa
3.
bbb
4.
ccc
5.
ddd
----------
I should get:
----------
aaa
3. bbb
4. ccc
5. ddd
----------
But I get:
----------
aaa
3.
bbb
4.
ccc
5. ddd
----------
As you see, it only works on the last line.
--
Cesar
--
--
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/d/optout.
Sunday, February 14, 2016
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment