Mercurial > vim
comparison runtime/macros/editexisting.vim @ 856:8cd729851562 v7.0g
updated for version 7.0g
author | vimboss |
---|---|
date | Sun, 30 Apr 2006 18:54:39 +0000 |
parents | 111509d2767a |
children | 23d23246742e |
comparison
equal
deleted
inserted
replaced
855:d2a4f08396fe | 856:8cd729851562 |
---|---|
1 " Vim Plugin: Edit the file with an existing Vim if possible | 1 " Vim Plugin: Edit the file with an existing Vim if possible |
2 " Maintainer: Bram Moolenaar | 2 " Maintainer: Bram Moolenaar |
3 " Last Change: 2005 Dec 15 | 3 " Last Change: 2006 Apr 30 |
4 | 4 |
5 " This is a plugin, drop it in your (Unix) ~/.vim/plugin or (Win32) | 5 " This is a plugin, drop it in your (Unix) ~/.vim/plugin or (Win32) |
6 " $VIM/vimfiles/plugin directory. Or make a symbolic link, so that you | 6 " $VIM/vimfiles/plugin directory. Or make a symbolic link, so that you |
7 " automatically use the latest version. | 7 " automatically use the latest version. |
8 | 8 |
33 | 33 |
34 " Skip ourselves. | 34 " Skip ourselves. |
35 if servername ==? v:servername | 35 if servername ==? v:servername |
36 continue | 36 continue |
37 endif | 37 endif |
38 | 38 |
39 " Check if this server is editing our file. | 39 " Check if this server is editing our file. |
40 if remote_expr(servername, "bufloaded('" . fname_esc . "')") | 40 if remote_expr(servername, "bufloaded('" . fname_esc . "')") |
41 " Yes, bring it to the foreground. | 41 " Yes, bring it to the foreground. |
42 if has("win32") | 42 if has("win32") |
43 call remote_foreground(servername) | 43 call remote_foreground(servername) |