Monday, February 15, 2016

Re: problem with a map

>On 14/02/2016 05:16 p.m., Sam Burk wrote:
>
>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.

That is odd. Try using nnoremap :g/^\d\+\.$/normal JJO<esc>. I tested it out
in Vim with your example text, and it seems to work.

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

No comments: