Thursday, April 16, 2015

Re: norm in a global command not working in script

Le jeudi 9 avril 2015 19:58:01 UTC+2, av a écrit :
> Hi Christian,
>
> Thanks for your reply.
>
> When you run the :call g:Gon() you should not have the test.txt file as the current buffer, delete that buffer before to call the function. I don't have the same result if the file is opened as the current buffer and if it was deleted. If the buffer was deleted before the call it doesn't work.
>
> Could you please retry this way and tell me if it still works for you or no.
>
> Thank you very much,
>
> Best regards.

Hi,

I would like to use that global command but instead of using norm to use an ex command, so something like this..

g,^\w,exe '.,.-1 join'

I find this kind of commands here http://stackoverflow.com/questions/3983406/delete-newline-in-vim

Is it possible to achive the g,something,norm kJ but with ex command instead, maybe it will work for me.

Thank you,

Alexandre

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