| 
									
										
										
										
											2007-05-12 15:14:36 +00:00
										 |  |  | *workshop.txt*  For Vim version 7.1.  Last change: 2006 Apr 24 | 
					
						
							| 
									
										
										
										
											2004-06-13 20:20:40 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 		  VIM REFERENCE MANUAL    by Gordon Prieur | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | Sun Visual WorkShop Features			*workshop* *workshop-support* | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 1. Introduction						|workshop-intro| | 
					
						
							|  |  |  | 2. Commands						|workshop-commands| | 
					
						
							|  |  |  | 3. Compiling vim/gvim for WorkShop			|workshop-compiling| | 
					
						
							|  |  |  | 4. Configuring gvim for a WorkShop release tree		|workshop-configure| | 
					
						
							|  |  |  | 5. Obtaining the latest version of the XPM library	|workshop-xpm| | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | {Vi does not have any of these features} | 
					
						
							|  |  |  | {only available when compiled with the |+sun_workshop| feature} | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | ============================================================================== | 
					
						
							|  |  |  | 1. Introduction						*workshop-intro* | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | Sun Visual WorkShop has an "Editor of Choice" feature designed to let users | 
					
						
							| 
									
										
										
										
											2005-04-15 21:13:42 +00:00
										 |  |  | debug using their favorite editors.  For the 6.0 release we have added support | 
					
						
							|  |  |  | for gvim.  A workshop debug session will have a debugging window and an editor | 
					
						
							|  |  |  | window (possibly others as well).  The user can do many debugging operations | 
					
						
							| 
									
										
										
										
											2004-06-13 20:20:40 +00:00
										 |  |  | from the editor window, minimizing the need to switch from window to window. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | The version of vim shipped with Sun Visual WorkShop 6 (also called Forte | 
					
						
							| 
									
										
										
										
											2005-04-15 21:13:42 +00:00
										 |  |  | Developer 6) is vim 5.3.  The features in this release are much more reliable | 
					
						
							|  |  |  | than the vim/gvim shipped with Visual WorkShop.  VWS users wishing to use vim | 
					
						
							| 
									
										
										
										
											2004-06-13 20:20:40 +00:00
										 |  |  | as their editor should compile these sources and install them in their | 
					
						
							|  |  |  | workshop release tree. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | ============================================================================== | 
					
						
							|  |  |  | 2. Commands						*workshop-commands* | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 						*:ws* *:wsverb* | 
					
						
							|  |  |  | :ws[verb] verb			Pass the verb to the verb executor | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | Pass the verb to a workshop function which gathers some arguments and | 
					
						
							|  |  |  | sends the verb and data to workshop over an IPC connection. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | ============================================================================== | 
					
						
							|  |  |  | 3. Compiling vim/gvim for WorkShop			*workshop-compiling* | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | Compiling vim with FEAT_SUN_WORKSHOP turns on all compile time flags necessary | 
					
						
							| 
									
										
										
										
											2005-04-15 21:13:42 +00:00
										 |  |  | for building a vim to work with Visual WorkShop.  The features required for VWS | 
					
						
							|  |  |  | have been built and tested using the Sun compilers from the VWS release.  They | 
					
						
							|  |  |  | have not been built or tested using Gnu compilers.  This does not mean the | 
					
						
							| 
									
										
										
										
											2004-06-13 20:20:40 +00:00
										 |  |  | features won't build and run if compiled with gcc, just that nothing is | 
					
						
							|  |  |  | guaranteed with gcc! | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | ============================================================================== | 
					
						
							|  |  |  | 4. Configuring gvim for a WorkShop release tree		*workshop-configure* | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | There are several assumptions which must be met in order to compile a gvim for | 
					
						
							|  |  |  | use with Sun Visual WorkShop 6. | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2005-04-15 21:13:42 +00:00
										 |  |  |     o You should use the compiler in VWS rather than gcc.  We have neither | 
					
						
							| 
									
										
										
										
											2004-06-13 20:20:40 +00:00
										 |  |  |       built nor tested with gcc and cannot guarantee it will build properly. | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2005-04-15 21:13:42 +00:00
										 |  |  |     o You must supply your own XPM library.  See |workshop-xpm| below for | 
					
						
							| 
									
										
										
										
											2004-06-13 20:20:40 +00:00
										 |  |  |       details on obtaining the latest version of XPM. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     o Edit the Makefile in the src directory and uncomment the lines for Sun | 
					
						
							| 
									
										
										
										
											2005-04-15 21:13:42 +00:00
										 |  |  |       Visual WorkShop.  You can easily find these by searching for the string | 
					
						
							| 
									
										
										
										
											2004-06-13 20:20:40 +00:00
										 |  |  |       FEAT_SUN_WORKSHOP | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2005-04-15 21:13:42 +00:00
										 |  |  |     o We also suggest you use Motif for your gui.  This will provide gvim with | 
					
						
							| 
									
										
										
										
											2004-06-13 20:20:40 +00:00
										 |  |  |       the same look-and-feel as the rest of Sun Visual WorkShop. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | The following configuration line can be used to configure vim to build for use | 
					
						
							|  |  |  | with Sun Visual WorkShop: | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     $ CC=cc configure --enable-workshop --enable-gui=motif \ | 
					
						
							|  |  |  | 	-prefix=<VWS-install-dir>/contrib/contrib6/<vim-version> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | The VWS-install-dir should be the base directory where your Sun Visual WorkShop | 
					
						
							| 
									
										
										
										
											2005-04-15 21:13:42 +00:00
										 |  |  | was installed.  By default this is /opt/SUNWspro.  It will normally require | 
					
						
							|  |  |  | root permissions to install the vim release.  You will also need to change the | 
					
						
							| 
									
										
										
										
											2004-06-13 20:20:40 +00:00
										 |  |  | symlink <VWS-install-dir>/bin/gvim to point to the vim in your newly installed | 
					
						
							| 
									
										
										
										
											2005-04-15 21:13:42 +00:00
										 |  |  | directory.  The <vim-version> should be a unique version string.  I use "vim" | 
					
						
							| 
									
										
										
										
											2004-06-13 20:20:40 +00:00
										 |  |  | concatenated with the equivalent of version.h's VIM_VERSION_SHORT. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | ============================================================================== | 
					
						
							|  |  |  | 5. Obtaining the latest version of the XPM library	*workshop-xpm* | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | The XPM library is required to show images within Vim with Motif or Athena. | 
					
						
							|  |  |  | Without it the toolbar and signs will be disabled. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | The XPM library is provide by Arnaud Le Hors of the French National Institute | 
					
						
							| 
									
										
										
										
											2005-04-15 21:13:42 +00:00
										 |  |  | for Research in Computer Science and Control.  It can be downloaded from | 
					
						
							|  |  |  | http://koala.ilog.fr/ftp/pub/xpm.  The current release, as of this writing, is | 
					
						
							|  |  |  | xpm-3.4k-solaris.tgz, which is a gzip'ed tar file.  If you create the directory | 
					
						
							| 
									
										
										
										
											2004-06-13 20:20:40 +00:00
										 |  |  | /usr/local/xpm and untar the file there you can use the uncommented lines in | 
					
						
							| 
									
										
										
										
											2005-04-15 21:13:42 +00:00
										 |  |  | the Makefile without changing them.  If you use another xpm directory you will | 
					
						
							| 
									
										
										
										
											2004-06-13 20:20:40 +00:00
										 |  |  | need to change the XPM_DIR in src/Makefile. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |  vim:tw=78:ts=8:ft=help:norl: |