- Feb 6, 2010Is there an easy way to use mvim --remote... to execute commands in a
running instance of MacVim?
This is what I've figured out so far from experimenting/docs
* I can use --remote-send to type in the command
* I can call a function that executes commands
What I want to do is call a ruby method.
What I am doing now is to add a function to my .vimrc like:
So the usage would be like:
If I have a ruby method:
cb = VIM::Buffer.current
I could call it from the command line with:
mvim --remote-expr "DoCommand('ruby delete_line(1)')" --servername
This works, but I was wondering if there was a way to do it directly
from the command line (in a running instance of MacVim).
You received this message from the "vim_mac" maillist.
For more information, visit http://www.vim.org/maillist.php
- Next post in topic >>