annotate runtime/doc/if_sniff.txt @ 1213:8906c10ecbb0

updated for version 7.1b
author vimboss
date Thu, 10 May 2007 18:19:11 +0000
parents e63691e7c504
children 8fe7832b1e10
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1213
8906c10ecbb0 updated for version 7.1b
vimboss
parents: 1121
diff changeset
1 *if_sniff.txt* For Vim version 7.1b. Last change: 2005 Mar 29
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4 VIM REFERENCE MANUAL
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5 by Anton Leherbauer (toni@takefive.co.at)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 SNiFF+ and Vim *sniff*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 1. Introduction |sniff-intro|
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 2. Commands |sniff-commands|
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 3. Compiling Vim with SNiFF+ interface |sniff-compiling|
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 {Vi does not have any of these commands} *E275* *E274* *E276* *E278* *E279*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 The SNiFF+ interface only works, when Vim was compiled with the |+sniff|
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 feature.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 ==============================================================================
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 1. Introduction *sniff-intro*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 The following features for the use with SNiFF+ are available:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 * Vim can be used for all editing requests
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 * SNiFF+ recognizes and updates all browsers when a file is saved in Vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 * SNiFF+ commands can be issued directly from Vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 How to use Vim with SNiFF+
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 1. Make sure SNiFF+ is running.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 2. In the Editor view of the Preferences dialog set the Field named
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 'External Editor' to 'Emacs/Vim'.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 4. Start Vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 5. Connect to SNiFF+ (:sniff connect)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 Once a connection is established, SNiFF+ uses Vim for all requests to show or
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 edit source code. On the other hand, you can send queries to SNiFF+ with the
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 :sniff command.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 ==============================================================================
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 2. Commands *sniff-commands*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 *:sniff* *:sni*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43 :sni[ff] request [symbol] Send request to sniff with optional symbol.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 {not in Vi}
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 :sni[ff] Display all possible requests and the connection
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46 status
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47
236
4707450c2b33 updated for version 7.0066
vimboss
parents: 7
diff changeset
48 Most requests require a symbol (identifier) as parameter. If it is omitted,
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49 Vim will use the current word under the cursor.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50 The available requests are listed below:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52 request mapping description
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53 -------------------------------------------------------------------------------
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54 connect sc Establish connection with SNiFF+.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55 Make sure SNiFF+ is prepared for this in the
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56 Preferences
236
4707450c2b33 updated for version 7.0066
vimboss
parents: 7
diff changeset
57 disconnect sq Disconnect from SNiFF+. You can reconnect any
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
58 time with :sniff connect (or 'sc')
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59 toggle st Toggle between implementation
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
60 and definition file
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
61 find-symbol sf Load the symbol into a Symbol Browser
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
62 browse-class sb Loads the class into a Class Browser
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
63 superclass ss Edit superclass of symbol
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
64 overridden so Edit overridden method of symbol
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
65 retrieve-file srf Retrieve symbol in current file
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
66 retrieve-project srp Retrieve symbol in current project
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
67 retrieve-all-projects srP Retrieve symbol in all projects
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
68 retrieve-next sR Retrieve symbol using current Retriever
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
69 settings
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
70 goto-symbol sg Goto definition or implementation of symbol
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
71 hierarchy sh Load symbol into the Hierarchy Browser
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
72 restr-hier sH same as above but show only related classes
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
73 xref-to sxt Start a refers-to query on symbol and
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
74 load the results into the Cross Referencer
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
75 xref-by sxb Start a referred-by query on symbol
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
76 xref-has sxh Start a refers-to components query on symbol
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
77 xref-used-by sxu Start a referred-by as component query on
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
78 symbol
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
79 show-docu sd Show documentation of symbol
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
80 gen-docu sD Generate documentation of symbol
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
81
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
82 The mappings are defined in a file 'sniff.vim', which is part of every SNiFF+
236
4707450c2b33 updated for version 7.0066
vimboss
parents: 7
diff changeset
83 product ($SNIFF_DIR/config/sniff.vim). This file is sourced whenever Vim
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
84 connects to SNiFF+.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
85
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
86 ==============================================================================
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
87 3. Compiling Vim with SNiFF+ interface *sniff-compiling*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
88
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
89 To compile Vim with SNiFF+ support, you need two source files of the extra
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
90 archive: if_sniff.c and if_sniff.h.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
91 On Unix: Edit the Makefile and uncomment the line "--enable-sniff". Or run
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
92 configure manually with this argument.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
93 On NT: Specify SNIFF=yes with your make command.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
94
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
95 vim:tw=78:ts=8:ft=help:norl: