📄 if_sniff.txt
字号:
*if_sniff.txt* For Vim version 5.8. Last change: 2000 Jan 01 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}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 VimHow 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 oredit 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 statusMost 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 mapping description-------------------------------------------------------------------------------connect sc Establish connection with SNiFF+. Make sure SNiFF+ is prepared for this in the Preferencesdisconnect sq Disconnect from SNiFF+. You can reconnect any time with :sniff connect (or 'sc')toggle st Toggle between implementation and definition filefind-symbol sf Load the symbol into a Symbol Browserbrowse-class sb Loads the class into a Class Browsersuperclass ss Edit superclass of symboloverridden so Edit overridden method of symbolretrieve-file srf Retrieve symbol in current fileretrieve-project srp Retrieve symbol in current projectretrieve-all-projects srP Retrieve symbol in all projectsretrieve-next sR Retrieve symbol using current Retriever settingsgoto-symbol sg Goto definition or implementation of symbolhierarchy sh Load symbol into the Hierarchy Browserrestr-hier sH same as above but show only related classesxref-to sxt Start a refers-to query on symbol and load the results into the Cross Referencerxref-by sxb Start a referred-by query on symbolxref-has sxh Start a refers-to components query on symbolxref-used-by sxu Start a referred-by as component query on symbolshow-docu sd Show documentation of symbolgen-docu sD Generate documentation of symbolThe 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 Vimconnects to SNiFF+.==============================================================================3. Compiling Vim with SNiFF+ interface *sniff-compiling*To compile Vim with SNiFF+ support, you need two source files of the extraarchive: if_sniff.c and if_sniff.h.On Unix: Edit the Makefile and uncomment the SNIFF macro definitionsOn NT: Specify SNIFF=yes with your make command. vim:tw=78:ts=8:sw=8:
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -