sponsor Vim development Vim logo Vim Book Ad

vimremote.sh : script to use gvim from IDE

 script karma  Rating 1/1, Downloaded by 593  Comments, bugs, improvements  Vim wiki

created by
Bart van Deenen
 
script type
utility
 
description
I wanted to use vim from the Xilinx ide, and I like the following actions to occur from the IDE


1) open every file in a split window in one gvim session
2) when opening the same file again from the IDE, don't cause a new split window if there is already one
3) use the line numbers provided by the ide.

In Xilinx you would define the external editor call

/path/to/vimremote.sh XILINX $1 $2

The XILINX is just a name so that one particular gvim session is used for it, and not any others you might have hanging around

You need a decent shell. Don't know how that works in Windows. This script could be useful in many other ide's that allow calls to external editors
 
install details
Just put the file somewhere on your harddisk, and configure your IDE to use it. The call to vimremote.sh has 3 parameters:
1) unique name for the gvim to associate with a certain IDE
2) filename
3) (optional) line number in the file
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
vimremote.sh 1.01 2007-08-04 6.0 Bart van Deenen Does not require file to exist. Everything else the same
ip used for rating: 18.117.142.128

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
Vim at Github