Re: Is there a way to run a shell script that "calls" VIM from outside, passing parameters to it (without to open yours interface)?

2016-07-22 Thread Charles Campbell
toothpik wrote: > On Thu, Jul 21, 2016 at 01:40:52PM -0700, Michel Grassi wrote: >> Em quinta-feira, 21 de julho de 2016 17:01:41 UTC-3, Tumbler Terrall >> escreveu: >>> Sure, make a custom function that takes parameters. Then call it from the >>> shell like so: >>> vim -c"call

Re: Is there a way to run a shell script that "calls" VIM from outside, passing parameters to it (without to open yours interface)?

2016-07-22 Thread arocker
> > at the risk of uttering blasphemy on the vim-use list, wouldn't awk be > better suited to this task than vim? > "Is this a nail I see before me" quoth the hammer-wielder. :-)* -- -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you

Re: Is there a way to run a shell script that "calls" VIM from outside, passing parameters to it (without to open yours interface)?

2016-07-22 Thread toothpik
On Thu, Jul 21, 2016 at 01:40:52PM -0700, Michel Grassi wrote: > Em quinta-feira, 21 de julho de 2016 17:01:41 UTC-3, Tumbler Terrall > escreveu: > > Sure, make a custom function that takes parameters. Then call it from the > > shell like so: > > vim -c"call MyFunction(myParameter1,

Re: Is there a way to run a shell script that "calls" VIM from outside, passing parameters to it (without to open yours interface)?

2016-07-21 Thread Michel Grassi
Em quinta-feira, 21 de julho de 2016 17:01:41 UTC-3, Tumbler Terrall escreveu: > Sure, make a custom function that takes parameters. Then call it from the > shell like so: > > > vim -c"call MyFunction(myParameter1, myParameter2)" > > > You'll need to dynamically fill in the parameters, but

Re: Is there a way to run a shell script that "calls" VIM from outside, passing parameters to it (without to open yours interface)?

2016-07-21 Thread Warren Terrall
Sure, make a custom function that takes parameters. Then call it from the shell like so: vim -c"call MyFunction(myParameter1, myParameter2)" You'll need to dynamically fill in the parameters, but that should be manageable. On Thu, Jul 21, 2016 at 1:36 PM, Michel Grassi

Is there a way to run a shell script that "calls" VIM from outside, passing parameters to it (without to open yours interface)?

2016-07-21 Thread Michel Grassi
Hi, I'd like to know if someone here can help-me. I need to store in a variable in the shell prompt the stdout of "vim -c {parameters}". But to make it works and meet my need, the Vim must be run externally by the shell (something like "vim -c{input recognized by vim}"), passing it input