开发者

vim/gvim remote editing

开发者 https://www.devze.com 2023-03-07 03:46 出处:网络
I use vim/gvim to edit multiple files. This means I start an instance as server: gvim --servername VI开发者_开发问答M

I use vim/gvim to edit multiple files. This means I start an instance as server:

gvim --servername VI开发者_开发问答M

Then i have multiple calls to

vim -remote filename

This works great - until i want to close one of the buffers. If I try to do that the whole server closes, regardless of the command used: :q, :db

This happens with vim and gvim. It happens only if it is used as server.

Any ideas why this is happening? Solutions? Is it a Bug or just a feature I don't really get?

Thanks! Simon


I'm not seeing that behavior when I try it on vim 7.3. if you do a :ls in the vim you are running how many buffers does it show? I would probably also recommend specifying the server name when opening new files.

vim --servername VIM --remote-silent filename

That way if you have multiple gvims open you can make sure the files open in the right one.

0

精彩评论

暂无评论...
验证码 换一张
取 消