v4daemon : Send vim buffer lines to your background daemon (i.e. netcat)
script karma |
Rating 2/2,
Downloaded by 497 |
Comments, bugs, improvements
|
Vim wiki
|
created by |
umit kablan |
|
script type |
utility |
|
description |
This script eases sending lines to the ahead-started daemon. I needed and tested it for creating a test server with netcat and send the pre-recorded sentences to the clients:
:V4dStart nc -l -p 10010
Starts netcat listening on port 10010. Then you start a client somewhere.
From the buffer you are working:
[Select by v,V,ctrl-v] :V4dSendLine
[Select by v] :V4dSendWord
Sends the line(s) you are on/selected to the daemon (and pushed to clients in my case).
:V4dStop
(-:njoy!
|
|
install details |
Untar v4daemon into $HOME/.vim
A helper program will be extracted in .vim/v4d_sendcmd.sh. Change the path if you want to:
let g:v4d_sendcmd_directory = "somewhere"
Todo: - show output from the background process
- use other utilities (sh, python) as daemon if it is possible
|
|
script versions (upload new version)
Click on the package to download.
ip used for rating: 18.191.102.112
|