Thursday, April 16, 2015

Re: norm in a global command not working in script

On 2015-04-16 15:58, av wrote:
> g,^\w,exe '.,.-1 join'
>
> Is it possible to achive the g,something,norm kJ but with ex
> command instead, maybe it will work for me.

A couple observations:

- you're using :exe but don't really need to

- your range is backwards

I suspect that you can accomplish what you want with

:g/^\w/-j


where "-j" is the Ex command to, on the previous line ("-"), join it
with the next line (":help :j").

-tim




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