VIM: if_sniff

IF_SNIFF

*if_sniff.txt*For Vim version 6.1.  Last change: 2001 Sep 03


  VIM REFERENCE MANUAL
by Anton Leherbauer (toni@takefive.co.at)


SNiFF+ and Vim    *sniff*

1. Introduction    |sniff-intro|
2. Commands    |sniff-commands|
3. Compiling Vim with SNiFF+ interface    |sniff-compiling|

{Vi does not have any of these commands}  *E275* *E274* *E276* *E278* *E279*

The SNiFF+ interface only works, when Vim was compiled with the |+sniff|
feature.


1. Introduction*sniff-intro*

The following features for the use with SNiFF+ are available:

   * Vim can be used for all editing requests
   * SNiFF+ recognizes and updates all browsers when a file is saved in Vim
   * SNiFF+ commands can be issued directly from Vim

How to use Vim with SNiFF+
   1. Make sure SNiFF+ is running.
   2. In the Editor view of the Preferences dialog set the Field named
      'External Editor' to 'Emacs/Vim'.
   4. Start Vim
   5. Connect to SNiFF+ (:sniff connect)

Once a connection is established, SNiFF+ uses Vim for all requests to show or
edit source code.  On the other hand, you can send queries to SNiFF+ with the
:sniff command.


2. Commands    *sniff-commands*

    *:sniff* *:sni*
:sni[ff] request [symbol]   Send request to sniff with optional symbol.
    {not in Vi}
:sni[ff]    Display all possible requests and the connection
    status

Most requests require a symbol (identifier) as parameter. If it is omitted,
Vim will use the current word under the cursor.
The available requests are listed below:

request      mappingdescription

connectscEstablish connection with SNiFF+.
Make sure SNiFF+ is prepared for this in the
Preferences
disconnectsqDisconnect from SNiFF+. You can reconnect any
time with :sniff connect (or 'sc')
togglestToggle between implementation
and definition file
find-symbolsfLoad the symbol into a Symbol Browser
browse-classsbLoads the class into a Class Browser
superclassssEdit superclass of symbol
overriddensoEdit overridden method of symbol
retrieve-filesrfRetrieve symbol in current file
retrieve-projectsrpRetrieve symbol in current project
retrieve-all-projectssrPRetrieve symbol in all projects
retrieve-nextsRRetrieve symbol using current Retriever
settings
goto-symbolsgGoto definition or implementation of symbol
hierarchyshLoad symbol into the Hierarchy Browser
restr-hiersHsame as above but show only related classes
xref-tosxtStart a refers-to query on symbol and
load the results into the Cross Referencer
xref-bysxbStart a referred-by query on symbol
xref-hassxhStart a refers-to components query on symbol
xref-used-bysxuStart a referred-by as component query on
symbol
show-docusdShow documentation of symbol
gen-docusDGenerate documentation of symbol

The mappings are defined in a file 'sniff.vim', which is part of every SNiFF+
product ($SNIFF_DIR/config/sniff.vim). This file is sourced whenever Vim
connects to SNiFF+.


3. Compiling Vim with SNiFF+ interface*sniff-compiling*

To compile Vim with SNiFF+ support, you need two source files of the extra
archive: if_sniff.c and if_sniff.h.
On Unix: Edit the Makefile and uncomment the line "--enable-sniff".  Or run
configure manually with this argument.
On NT: Specify SNIFF=yes with your make command.

 vim:tw=78:ts=8:ft=help:norl:

Generated by vim2html on Sat May 4 18:38:43 CEST 2002