1 *if_sniff.txt* For Vim version 5.8. Last change: 2000 Jan 01
5 by Anton Leherbauer (toni@takefive.co.at)
10 1. Introduction |sniff-intro|
11 2. Commands |sniff-commands|
12 3. Compiling Vim with SNiFF+ interface |sniff-compiling|
14 {Vi does not have any of these commands}
16 The SNiFF+ interface only works, when Vim was compiled with the |+sniff|
19 ==============================================================================
20 1. Introduction *sniff-intro*
22 The following features for the use with SNiFF+ are available:
24 * Vim can be used for all editing requests
25 * SNiFF+ recognizes and updates all browsers when a file is saved in Vim
26 * SNiFF+ commands can be issued directly from Vim
28 How to use Vim with SNiFF+
29 1. Make sure SNiFF+ is running.
30 2. In the Editor view of the Preferences dialog set the Field named
31 'External Editor' to 'Emacs/Vim'.
33 5. Connect to SNiFF+ (:sniff connect)
35 Once a connection is established, SNiFF+ uses Vim for all requests to show or
36 edit source code. On the other hand, you can send queries to SNiFF+ with the
39 ==============================================================================
40 2. Commands *sniff-commands*
43 :sni[ff] request [symbol] Send request to sniff with optional symbol.
45 :sni[ff] Display all possible requests and the connection
48 Most requests require a symbol (identifier) as parameter. If it is omitted,
49 Vim will use the current word under the cursor.
50 The available requests are listed below:
52 request mapping description
53 -------------------------------------------------------------------------------
54 connect sc Establish connection with SNiFF+.
55 Make sure SNiFF+ is prepared for this in the
57 disconnect sq Disconnect from SNiFF+. You can reconnect any
58 time with :sniff connect (or 'sc')
59 toggle st Toggle between implementation
61 find-symbol sf Load the symbol into a Symbol Browser
62 browse-class sb Loads the class into a Class Browser
63 superclass ss Edit superclass of symbol
64 overridden so Edit overridden method of symbol
65 retrieve-file srf Retrieve symbol in current file
66 retrieve-project srp Retrieve symbol in current project
67 retrieve-all-projects srP Retrieve symbol in all projects
68 retrieve-next sR Retrieve symbol using current Retriever
70 goto-symbol sg Goto definition or implementation of symbol
71 hierarchy sh Load symbol into the Hierarchy Browser
72 restr-hier sH same as above but show only related classes
73 xref-to sxt Start a refers-to query on symbol and
74 load the results into the Cross Referencer
75 xref-by sxb Start a referred-by query on symbol
76 xref-has sxh Start a refers-to components query on symbol
77 xref-used-by sxu Start a referred-by as component query on
79 show-docu sd Show documentation of symbol
80 gen-docu sD Generate documentation of symbol
82 The mappings are defined in a file 'sniff.vim', which is part of every SNiFF+
83 product ($SNIFF_DIR/config/sniff.vim). This file is sourced whenever Vim
86 ==============================================================================
87 3. Compiling Vim with SNiFF+ interface *sniff-compiling*
89 To compile Vim with SNiFF+ support, you need two source files of the extra
90 archive: if_sniff.c and if_sniff.h.
91 On Unix: Edit the Makefile and uncomment the SNIFF macro definitions
92 On NT: Specify SNIFF=yes with your make command.