The clientserver feature allows Vim to accept & execute commands from another process.
Questions tagged [clientserver]
30 questions
30
votes
6 answers
What are practical uses of the client-server mode?
I know that Vim allows a client server mode (:h clientserver): it is possible to turn it into a server which will get some commands and execute them and as a client which will send the commands to the server.
I get how it works, but I can't imagine…
statox
- 49,782
- 19
- 148
- 225
2
votes
0 answers
Start server from within existing Vim instance
Is it possible to have an existing vim instance launch a server from within, without using the --servername command-line option? (I would want to do this from a FileType autocommand).
Alternatively, is there any inconvenient in setting up a shell…
Circonflexe
- 171
- 3
2
votes
1 answer
How to send literal form of special key sequences with --remote-send
I am using vim --remote-send. As per the documentation It automatically expands "special" key signifiers, so that e.g. vim --remote-send "" simulates pressing ctrl-t. I would like to send the literal key sequence <,C,-,t,>, but vim's…
Sean Mackesey
- 342
- 2
- 12
1
vote
0 answers
Can I detect vim is in debugger mode through --remote-expr?
In general I can programmatically detect the active mode on a vim instance using
$ vim --remote-expr 'mode(1)'
but when vim is in debugger mode (i.e., it has hit a breakpoint placed via :breakadd), it seems to just return c (Command-line mode)…
Mu Mind
- 485
- 3
- 10
0
votes
0 answers
Invoking vim from another program to edit and return text
Is it possible to invoke vim from another program to edit a block of text passed from that program and have vim return the edited text to the invoking program without writing it to a file?
I am writing a program in Go, the program's data is stored…
RedGrittyBrick
- 121
- 3