blob: 0101188f9469320756d64a52e5345dfe18b4b087 [file] [log] [blame]
Bram Moolenaar1b826e52007-05-12 15:14:36 +00001*workshop.txt* For Vim version 7.1. Last change: 2006 Apr 24
Bram Moolenaar071d4272004-06-13 20:20:40 +00002
3
4 VIM REFERENCE MANUAL by Gordon Prieur
5
6
7Sun Visual WorkShop Features *workshop* *workshop-support*
8
91. Introduction |workshop-intro|
102. Commands |workshop-commands|
113. Compiling vim/gvim for WorkShop |workshop-compiling|
124. Configuring gvim for a WorkShop release tree |workshop-configure|
135. Obtaining the latest version of the XPM library |workshop-xpm|
14
15{Vi does not have any of these features}
16{only available when compiled with the |+sun_workshop| feature}
17
18==============================================================================
191. Introduction *workshop-intro*
20
21Sun Visual WorkShop has an "Editor of Choice" feature designed to let users
Bram Moolenaar13fcaaf2005-04-15 21:13:42 +000022debug using their favorite editors. For the 6.0 release we have added support
23for gvim. A workshop debug session will have a debugging window and an editor
24window (possibly others as well). The user can do many debugging operations
Bram Moolenaar071d4272004-06-13 20:20:40 +000025from the editor window, minimizing the need to switch from window to window.
26
27The version of vim shipped with Sun Visual WorkShop 6 (also called Forte
Bram Moolenaar13fcaaf2005-04-15 21:13:42 +000028Developer 6) is vim 5.3. The features in this release are much more reliable
29than the vim/gvim shipped with Visual WorkShop. VWS users wishing to use vim
Bram Moolenaar071d4272004-06-13 20:20:40 +000030as their editor should compile these sources and install them in their
31workshop release tree.
32
33==============================================================================
342. Commands *workshop-commands*
35
36 *:ws* *:wsverb*
37:ws[verb] verb Pass the verb to the verb executor
38
39Pass the verb to a workshop function which gathers some arguments and
40sends the verb and data to workshop over an IPC connection.
41
42==============================================================================
433. Compiling vim/gvim for WorkShop *workshop-compiling*
44
45Compiling vim with FEAT_SUN_WORKSHOP turns on all compile time flags necessary
Bram Moolenaar13fcaaf2005-04-15 21:13:42 +000046for building a vim to work with Visual WorkShop. The features required for VWS
47have been built and tested using the Sun compilers from the VWS release. They
48have not been built or tested using Gnu compilers. This does not mean the
Bram Moolenaar071d4272004-06-13 20:20:40 +000049features won't build and run if compiled with gcc, just that nothing is
50guaranteed with gcc!
51
52==============================================================================
534. Configuring gvim for a WorkShop release tree *workshop-configure*
54
55There are several assumptions which must be met in order to compile a gvim for
56use with Sun Visual WorkShop 6.
57
Bram Moolenaar13fcaaf2005-04-15 21:13:42 +000058 o You should use the compiler in VWS rather than gcc. We have neither
Bram Moolenaar071d4272004-06-13 20:20:40 +000059 built nor tested with gcc and cannot guarantee it will build properly.
60
Bram Moolenaar13fcaaf2005-04-15 21:13:42 +000061 o You must supply your own XPM library. See |workshop-xpm| below for
Bram Moolenaar071d4272004-06-13 20:20:40 +000062 details on obtaining the latest version of XPM.
63
64 o Edit the Makefile in the src directory and uncomment the lines for Sun
Bram Moolenaar13fcaaf2005-04-15 21:13:42 +000065 Visual WorkShop. You can easily find these by searching for the string
Bram Moolenaar071d4272004-06-13 20:20:40 +000066 FEAT_SUN_WORKSHOP
67
Bram Moolenaar13fcaaf2005-04-15 21:13:42 +000068 o We also suggest you use Motif for your gui. This will provide gvim with
Bram Moolenaar071d4272004-06-13 20:20:40 +000069 the same look-and-feel as the rest of Sun Visual WorkShop.
70
71The following configuration line can be used to configure vim to build for use
72with Sun Visual WorkShop:
73
74 $ CC=cc configure --enable-workshop --enable-gui=motif \
75 -prefix=<VWS-install-dir>/contrib/contrib6/<vim-version>
76
77The VWS-install-dir should be the base directory where your Sun Visual WorkShop
Bram Moolenaar13fcaaf2005-04-15 21:13:42 +000078was installed. By default this is /opt/SUNWspro. It will normally require
79root permissions to install the vim release. You will also need to change the
Bram Moolenaar071d4272004-06-13 20:20:40 +000080symlink <VWS-install-dir>/bin/gvim to point to the vim in your newly installed
Bram Moolenaar13fcaaf2005-04-15 21:13:42 +000081directory. The <vim-version> should be a unique version string. I use "vim"
Bram Moolenaar071d4272004-06-13 20:20:40 +000082concatenated with the equivalent of version.h's VIM_VERSION_SHORT.
83
84==============================================================================
855. Obtaining the latest version of the XPM library *workshop-xpm*
86
87The XPM library is required to show images within Vim with Motif or Athena.
88Without it the toolbar and signs will be disabled.
89
90The XPM library is provide by Arnaud Le Hors of the French National Institute
Bram Moolenaar13fcaaf2005-04-15 21:13:42 +000091for Research in Computer Science and Control. It can be downloaded from
92http://koala.ilog.fr/ftp/pub/xpm. The current release, as of this writing, is
93xpm-3.4k-solaris.tgz, which is a gzip'ed tar file. If you create the directory
Bram Moolenaar071d4272004-06-13 20:20:40 +000094/usr/local/xpm and untar the file there you can use the uncommented lines in
Bram Moolenaar13fcaaf2005-04-15 21:13:42 +000095the Makefile without changing them. If you use another xpm directory you will
Bram Moolenaar071d4272004-06-13 20:20:40 +000096need to change the XPM_DIR in src/Makefile.
97
98 vim:tw=78:ts=8:ft=help:norl: