Wednesday, April 6, 2011

Unexpected buffer behaviour with --remote-silent

Hi all.

I use a .viminfo file to preserve the buffer list when I exit vim, and
as per section 21.3 of the manual, I include '%' in my viminfo setting
which is described to save:
% the buffer list (only restored when starting Vim without file
arguments)

This normally works as advertised. However, when I've been starting
vim up with a command like:

gvim.bat --servername bug_1109 --remote-silent +"cd k:/somedir" "k:/
file1" "k:/file2"

I find that the buffer list is being restored in addition to the file
arguments I've provided. With --remote, this doesn't happen.

Is this the intended behaviour? I'd rather not load the buffer list
if I provide file arguments - any tips?

Note I'm using vim 7.3 with patches 1-152 on windows, from the Cream
compilation (without Cream).

Thank you,
John

--
You received this message from the "vim_use" 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

No comments: