Navigation

  • eclim »
  • Documentation »
  • Python »

Python Search¶

Element Search¶

Element searching allows you to place the cursor over just about any element in a source file (method call, class name, constant) and perform a search for that element by issuing the command :PhpFindDefinition.

If only one result is found and that result is in the current source file, the cursor will be moved to the element found. Otherwise, on single result matches, the value of g:EclimPythonSearchSingleResult will be consulted for the action to take. If there are multiple results, the location list will be opened with the list of results.

Note

Searching support is provided via eclim’s integration with rope.

Please see the rope docs for more information.

As a convenience eclim also provides the command :PythonSearchContext. This command accepts no arguments and will perform the appropriate search depending on the context of the element.

  • If the cursor is on the declaration of a class, function, or method then it will search for all occurrences.
  • Otherwise, it will search for the declaration of the element.

Configuration¶

Vim Variables

  • g:EclimPythonSearchSingleResult (Default: ‘split’) - Determines what action to take when a only a single result is found.

    Possible values include:

    • ‘split’ - open the result in a new window via “split”.
    • ‘edit’ - open the result in the current window.
    • ‘tabnew’ - open the result in a new tab.
    • ‘lopen’ - open the location list to display the result.

    This setting overrides the global default for all supported language types which can be set using the g:EclimDefaultFileOpenAction setting which accepts the same possible values.

  • g:EclimLocationListHeight (Default: 10) - Sets the height in lines of the location list window when eclim opens it to display search results.

Table Of Contents

  • About / News
  • Download
  • Features
  • Screenshots
  • Source Code
  • Getting Started
  • History of Changes
  • Contribute
  • Documentation
    • Introduction
    • Eclimd
    • Settings
    • Issues / Quirks
    • Code Completion
    • Suggested Vim Mappings
    • Cheatsheet
    • FAQ
    • Common
      • Eclipse Projects
      • Utility Commands
      • Local History
      • Web Lookup Commands
    • C/C++
      • C/C++ Project Configuration
      • C/C++ Code Completion
      • C/C++ Validation
      • C/C++ Search
      • Call Hierarchy
    • Css
      • Css Code Completion
      • Css Validation
    • Dltk (Dynamic Languages Toolkit)
      • Dltk Build Path
    • Dtd
      • Dtd File Validation
    • Html
      • Html Code Completion
      • Html File Validation
      • Html File Utils
    • Java
      • Ant
        • Ant Execution
        • Ant Code Completion
        • Ant File Validation
        • Ant Documentation Lookup
      • Maven
        • Maven Execution
        • Maven Dependencies
      • Log4j
        • Log4j File Validation
      • WEB-INF/web.xml
        • WEB-INF/web.xml Validation
      • Eclipse Classpath Editing
      • Java Validation
      • Java Search
      • Java / Javac Support
      • Javadoc Support
      • Automated Imports
      • Java Code Completion
      • Java Code Correction
      • Class Constructor Generation
      • Method Override / Impl
      • Delegate Methods
      • Java Bean Functionality
      • Class / Interface Hierarchy
      • Java Source Code Formatting
      • Refactoring
      • Checkstyle
      • JUnit
      • TestNG
      • Logging
      • Java Tools Integration
    • Javascript
      • Javascript Validation
    • Php
      • PDT Build Path
      • Php Code Completion
      • Php Validation
      • Php Search
    • Python
      • Python Validation
      • Python Code Completion
      • Python Search
      • Django
    • Ruby
      • Ruby Build Path
      • Ruby Code Completion
      • Ruby Validation
      • Ruby Search
    • Xml
      • Xml Code Completion
      • Xml Definition Lookup
      • Xml Validation
      • Xml Format
    • Xsd
      • Xsd Validation
  • Guides
    • Installing / Upgrading
    • Uninstalling
    • Troubleshooting
    • Eclim Headless Server Guide
    • Multiple Workspace Guide
    • Eclim Developers Guide
  • Translations
    • Traditional Chinese
      • Eclim Vim 指令參考
  • Development Docs
    • Eclim Architecture
  • Related Projects
    • Eclipse
    • Vim
    • Emacs + Eclim
    • Sublime Text 2 + Eclim
    • TextMate + Eclim
    • Vimplugin
    • Vrapper
    • viPlugin
    • Viable

Support / Mailing Lists

  • Users Mailing List
  • Developers Mailing List
  • Bugs / Feature Requests
  • IRC

Quick Search

Google Search

This Page

  • Python Search
    • Element Search
    • Configuration
  • Show Source

Navigation

  • eclim »
  • Documentation »
  • Python »
Created with Vim - logo Sourceforge.net Logo - logo
© Copyright 2009, Eric Van Dewoestine. Last updated on Apr 22, 2012. Created using Sphinx 1.1.3.