editexisting.vim script does not bring gvim window to foreground

Bug #390958 reported by glutinous
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
vim (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: vim

I am running the editexisting.vim script which is supposed to bring existing vim sessions editing the same file to the foreground (rather than printing that message about an existing swap file). If I use alt-tab to go back to the terminal, instead of bringing the window to the foreground, gvim just returns back to the prompt. It does not even print the existing swap file message at all.

I have tried running the script by copying it to my own .vim/plugin and adding 'runtime! macros/editExisting.vim' to my .vimrc. I have also tried with vim-gtk and vim-gnome. All have the same outcome.

To reproduce, run:

gvim test; sleep 3s; gvim test

And when the first instance of vim comes up, press alt-tab to switch to another window. After 3s, the previous vim window is meant to raise back to the foreground, but it does not.

$ lsb_release -rd
Description: Ubuntu 9.04
Release: 9.04

$ dpkg -l | grep vim
ii vim-common 2:7.2.079-1ubuntu5 Vi IMproved - Common files
ii vim-gnome 2:7.2.079-1ubuntu5 Vi IMproved - enhanced vi editor - with GNOM
ii vim-gui-common 2:7.2.079-1ubuntu5 Vi IMproved - Common GUI files
ii vim-runtime 2:7.2.079-1ubuntu5 Vi IMproved - Runtime files
ii vim-tiny 2:7.2.079-1ubuntu5 Vi IMproved - enhanced vi editor - compact v

Tags: gnome gtk vim
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.