Is there a way to make vim stuck in command mode with a :
already typed in?
In that way, for instance:
/foo
Enter and the cursor would go to the beginning of the next line containing foo
. :
already typed in for the next command.As a last try, I could just initialize vim with -servername=FOO
and then code a little script that would read from stdin and send remote-send
to FOO whenever it detects(by parsing) a whole command was typed on stdin.
Then I would just use Vim and this other script side by side on different xterms/gnu screens.
EDIT
OK, I will use this one. This way I can even make
:a
command to enter vim's Insert mode and switch back to command mode when entering a line with a single .. This way I would also have syntax highlight on the fly when inserting text (you know, vim has a very pretty visual display of the text, I'm just too used with ed's interface). When I have so time I'll write this script and link it here.