Monday, October 26, 2015

Re: how to find line in vim function

Thanks you, Gary and Tony. I was traveling and did not get a chance to reply. And my apology, I meant to say that I use vim to write/edit a large shell function in vim, which is called from .sh.

Typically, I write and debug small section, but since I was traveling, I wrote the entire function without debugging on the server. That was why I got into this trouble. I still don't know how to figure out the actual line error-ed out in the function, but was able to block and unblock the code to debug the problem.

If there is a better way, I love to hear.

Thanks again.

John

On Thursday, October 22, 2015 at 4:31:43 AM UTC-4, Gary Johnson wrote:
> On 2015-10-21, John Zhao wrote:
> > I am writing a large vim function. When I call it from a .sh
> > script, I got the following error:
>
> If you are really calling a Vim function from a shell script, that
> won't work. Shell scripts must use the language of the shell that
> interprets them. Vim functions must be interpreted by Vim.
>
> Regards,
> Gary

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

Post a Comment