Tuesday, July 16, 2019

Re: How can I define a shell function (named `:` would be neat) from a terminal buffe and send commands to current vim clientr?

Thank you! It really helps!

Christian Brabandt <cblists@256bit.org> 于2019年7月16日周二 上午1:25写道:

On Di, 16 Jul 2019, 吴祖姜 wrote:

> No, not a tmap. I know tmap. 
>
> What I want is, to invoke vim command from a terminal with shell commands,
> without typing <c-w> prefix or entering normal mode. 
>
> Like providing a shell function 'send-keys-to-host-vim' (and I want its name be
> ':'), then run
>
> $ send-keys-to-host-vim vsp my.file<enter>
>
> It equals to <c-w>:vsp my.file<enter>
>
> Sorry for my poor English, hope it is explained clearly this time. 

Have a look at `:h terminal-api`. I have a plugin that does something
similar: https://github.com/chrisbra/vpager you can also have a look
there.

Best,
Christian
--
Wie man sein Kind nicht nennen sollte:
  Clara Schnaps

--
--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/20190715172540.GO31610%40256bit.org.
For more options, visit https://groups.google.com/d/optout.

--
--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/CAPHDgoOaXmZqiBpAqv6T6Rk4e_b1t%3D31-U7yxTV-LOszhXBs_w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment