On Wednesday, August 14, 2013 10:49:17 AM UTC-5, John Szakmeister wrote:
> On Mon, Aug 12, 2013 at 9:49 PM, John Szakmeister <[email protected]> 
> wrote:
> 
> > All,
> 
> >
> 
> > I've been working on some vimscript to help expand an UltiSnips
> 
> > template for a new file and ran across an interesting bug.
> 
> >
> 
> > With the attached simple.vim, if I run:
> 
> >
> 
> >    vim -u simple.vim -U NONE --noplugin --servername GVIM0 foo.txt
> 
> >
> 
> > I see vim startup and insert foo.txt into the empty file.  If I add
> 
> > --remote-silent to that though, nothing is inserted:
> 
> >
> 
> >    vim -u simple.vim -U NONE --noplugin --servername GVIM0 \
> 
> >       --remote-silent foo.txt
> 
> >
> 
> > The autocmd is being fired--as evidenced by the message--but no text
> 
> > is inserted.
> 
> >
> 
> > Am I missing something here?  It seems like a bug to me that it's getting 
> > lost.
> 
> 
> 
> I'm also curious if anyone has a suggestion for how to start debugging
> 
> this.  I'm willing to dig around and try to find the source of the
> 
> problem.
> 
> 

Is there an existing server GVIM0 running for your remote-silent version?

When you use --remote-silent, the Vim parsing the .vimrc is NOT necessarily the 
same Vim as the one which will edit the file.

Otherwise, I think --remote commands internally use the :drop command to edit a 
file. You can see whether you can reproduce your problem using that.

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Raspunde prin e-mail lui