sponsor Vim development Vim logo Vim Book Ad

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
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
v4daemon.tar.gz 0.2 2010-08-17 6.0 umit kablan Removed V4dSendVisual. Now V4dSendLine is enough.
Added V4dSendWord for visual character-wide selection.
v4daemon.tar.gz 0.1 2010-08-08 6.0 umit kablan Initial upload
ip used for rating: 18.191.102.112

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
Vim at Github