Adding new stuff
This commit is contained in:
parent
39ee792ad4
commit
a410da0e04
722 changed files with 331 additions and 189 deletions
58
vim-plugins/bundle/eclim/doc/vim/php/buildpath.txt
Normal file
58
vim-plugins/bundle/eclim/doc/vim/php/buildpath.txt
Normal file
|
|
@ -0,0 +1,58 @@
|
|||
*vim-php-buildpath.html*
|
||||
|
||||
Php Build Path
|
||||
**************
|
||||
|
||||
Source code completion, searching, and other features make use of the
|
||||
eclipse dltk's (http://eclipse.org/dltk/) .buildpath to locate
|
||||
resources. When you first create a dltk project (currently php
|
||||
(vim-php-index) or ruby (vim-ruby-index)), a .buildpath file is
|
||||
created in the project's root directory. If your project depends on
|
||||
any source files located outside your project or in another project,
|
||||
then you'll need to edit your .buildpath accordingly.
|
||||
|
||||
To help you do this, eclim provides several commands to ease the
|
||||
creation of new build path entries and variables, all of which are
|
||||
made available when you edit your .buildpath file in vim. Also when
|
||||
you write the .buildpath file, Vim will issue a command to the eclim
|
||||
server to update the project's build path, and will report any errors
|
||||
via vim's location list (:help location-list).
|
||||
|
||||
The following is a list of commands that eclim provides while editing
|
||||
your .buildpath.
|
||||
|
||||
*:NewSrcEntry_dltk_php*
|
||||
|
||||
- :NewSrcEntry <dir> [<dir> ...] - Adds one or more new entries
|
||||
which reference source directories in your project.
|
||||
>
|
||||
<buildpathentry external="true" kind="lib" path="src/php"/>
|
||||
|
||||
<
|
||||
|
||||
This command supports command completion of project relative
|
||||
directories.
|
||||
|
||||
*:NewLibEntry_dltk_php*
|
||||
|
||||
- :NewLibEntry <dir> [<dir> ...] - Adds one or more new entries
|
||||
which reference external source directories.
|
||||
>
|
||||
<buildpathentry external="true" kind="lib" path="/usr/local/php/cake_1.1.16.5421"/>
|
||||
|
||||
<
|
||||
|
||||
This command supports command completion of directories.
|
||||
|
||||
*:NewProjectEntry_dltk_php*
|
||||
|
||||
- :NewProjectEntry <project> [<project> ...] - Adds one or more new
|
||||
entries which reference other projects.
|
||||
>
|
||||
<buildpathentry combineaccessrules="false" kind="prj" path="/test_project"/>
|
||||
|
||||
<
|
||||
|
||||
This command supports command completion of project names.
|
||||
|
||||
vim:ft=eclimhelp
|
||||
27
vim-plugins/bundle/eclim/doc/vim/php/complete.txt
Normal file
27
vim-plugins/bundle/eclim/doc/vim/php/complete.txt
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
*vim-php-complete.html*
|
||||
|
||||
Php Code Completion
|
||||
*******************
|
||||
|
||||
Php code completion uses the standard Vim code completion mechanism
|
||||
(vim-code_completion) like so:
|
||||
|
||||
>
|
||||
|
||||
<?php
|
||||
class Test {
|
||||
function getName () {
|
||||
}
|
||||
function getValue () {
|
||||
}
|
||||
}
|
||||
|
||||
$test = new Test();
|
||||
|
||||
$test->get<C-X><C-U>
|
||||
$test->getName()
|
||||
?>
|
||||
|
||||
<
|
||||
|
||||
vim:ft=eclimhelp
|
||||
29
vim-plugins/bundle/eclim/doc/vim/php/index.txt
Normal file
29
vim-plugins/bundle/eclim/doc/vim/php/index.txt
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
*vim-php-index.html*
|
||||
|
||||
Php
|
||||
***
|
||||
|
||||
|
||||
Features
|
||||
========
|
||||
|
||||
- Php Build Path (vim-php-buildpath)
|
||||
- Php Code Completion (vim-php-complete)
|
||||
- Php Validation (vim-php-validate)
|
||||
- Php Search (vim-php-search)
|
||||
|
||||
Suggested Mappings
|
||||
==================
|
||||
|
||||
Here are some mappings for the php funtionality provided by eclim. To
|
||||
make use of these mappings, simply create a ftplugin file for php and
|
||||
place your mappings there (:help ftplugin-name).
|
||||
|
||||
- The following mapping allows you to simply hit <enter> on an
|
||||
element to perform a search to find it.
|
||||
>
|
||||
nnoremap <silent> <buffer> <cr> :PhpSearchContext<cr>
|
||||
|
||||
<
|
||||
|
||||
vim:ft=eclimhelp
|
||||
112
vim-plugins/bundle/eclim/doc/vim/php/search.txt
Normal file
112
vim-plugins/bundle/eclim/doc/vim/php/search.txt
Normal file
|
|
@ -0,0 +1,112 @@
|
|||
*vim-php-search.html*
|
||||
|
||||
Php Search
|
||||
**********
|
||||
|
||||
*:PhpSearch*
|
||||
|
||||
|
||||
Pattern Search
|
||||
==============
|
||||
|
||||
Pattern searching provides a means to widen a search beyond a single
|
||||
element. A pattern search can be executed using the command
|
||||
|
||||
:PhpSearch -p <pattern> [-t <type> -s <scope> -i -a <action>]
|
||||
|
||||
When there is more than 1 result, those results will be placed into
|
||||
vim's quickfix list (:help quickfix) so that you can easily navigate
|
||||
them using vim's quickfix commands.
|
||||
|
||||
Vim command completion is supported through out the command with the
|
||||
exception of the pattern to search for.
|
||||
|
||||
>
|
||||
|
||||
:PhpSearch <Tab>
|
||||
:PhpSearch -p MyClass* <Tab>
|
||||
:PhpSearch -p MyClass* -t <Tab>
|
||||
:PhpSearch -p MyClass* -t class <Tab>
|
||||
:PhpSearch -p MyClass* -t class -s <Tab>
|
||||
:PhpSearch -p MyClass* -t class -s project
|
||||
|
||||
<
|
||||
|
||||
|
||||
- -p <pattern>: The pattern to search for.
|
||||
Ex.
|
||||
|
||||
>
|
||||
MyClass
|
||||
myFunction
|
||||
my*
|
||||
|
||||
<
|
||||
|
||||
- -t <type> (Default: all): The type of element to search for where
|
||||
possible types include
|
||||
- class
|
||||
- function
|
||||
- field
|
||||
- -s <scope> (Default: all): The scope of the search where possible
|
||||
values include
|
||||
- all - Search the whole workspace.
|
||||
- project - Search the current project, dependent projects, and
|
||||
libraries.
|
||||
- -i: Ignore case when searching.
|
||||
- -a: The vim command to use to open the result (edit, split,
|
||||
vsplit, etc).
|
||||
|
||||
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. Performing an element search is
|
||||
the same as performing a pattern search with the exception that you do
|
||||
not specify the -p option since the element under the cursor will be
|
||||
searched for instead.
|
||||
|
||||
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:EclimPhpSearchSingleResult|
|
||||
will be consulted for the action to take. If there are multiple
|
||||
results, the quickfix list will be opened with the list of results.
|
||||
|
||||
*:PhpSearchContext*
|
||||
|
||||
As a convenience eclim also provides the command :PhpSearchContext.
|
||||
This command accepts only the optional -a argument described above,
|
||||
and will perform the appropriate search depending on the context of
|
||||
the element under the cursor.
|
||||
|
||||
- If the cursor is on the file name in a require or include call, it
|
||||
will search the configured include path for the file.
|
||||
- Otherwise, it will search for the declaration of the element.
|
||||
|
||||
Configuration
|
||||
=============
|
||||
|
||||
Vim Settings (vim-settings)
|
||||
|
||||
*g:EclimPhpSearchSingleResult*
|
||||
|
||||
- g:EclimPhpSearchSingleResult (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.
|
||||
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:EclimQuickFixOpen (Default: 'botright copen') Specifies the
|
||||
command used to open the quickfix window when multiple results are
|
||||
found.
|
||||
- g:EclimQuickFixHeight (Default: 10) - Sets the height, in lines,
|
||||
of the quickfix window when eclim opens it to display search
|
||||
results.
|
||||
|
||||
vim:ft=eclimhelp
|
||||
57
vim-plugins/bundle/eclim/doc/vim/php/validate.txt
Normal file
57
vim-plugins/bundle/eclim/doc/vim/php/validate.txt
Normal file
|
|
@ -0,0 +1,57 @@
|
|||
*vim-php-validate.html*
|
||||
|
||||
*:Validate_php*
|
||||
|
||||
|
||||
Php Validation
|
||||
**************
|
||||
|
||||
When saving a php source file that resides in a project, eclim will
|
||||
update that source file in Eclipse and will report any validation
|
||||
errors found. Any errors will be placed in the current window's
|
||||
location list (:help location-list) and the corresponding lines in the
|
||||
source file will be marked via Vim's :sign functionality with '>>'
|
||||
markers in the left margin.
|
||||
|
||||
Automatic validation of php source files can be disabled via the
|
||||
g:EclimPhpValidate variable (described below). If you choose to
|
||||
disable automatic validation, you can still use the :Validate command
|
||||
to manually validate the current file.
|
||||
|
||||
|
||||
Configuration
|
||||
=============
|
||||
|
||||
Vim Settings (vim-settings)
|
||||
|
||||
*g:EclimPhpValidate*
|
||||
|
||||
- g:EclimPhpValidate (Default: 1) - If set to 0, disables source
|
||||
code validation.
|
||||
Note: When enabled, syntastic
|
||||
(https://github.com/scrooloose/syntastic) is disabled so that
|
||||
eclim and syntastic don't step on each other. If you'd like to use
|
||||
syntastic over eclim for validation, then simply disable eclim's
|
||||
validation.If you'd like to disable eclim's source code validation
|
||||
for all languages, eclim provides a global variable for that as
|
||||
well:>
|
||||
|
||||
let g:EclimFileTypeValidate = 0
|
||||
|
||||
<
|
||||
|
||||
|
||||
- g:EclimPhpHtmlValidate (Default: 0) - If set to a non 0 value,
|
||||
enables validating html markup in the php file. Enabling of html
|
||||
validation can also be enabled on a per buffer basis using a buffer
|
||||
local setting:
|
||||
>
|
||||
let b:EclimPhpHtmlValidate = 1
|
||||
|
||||
<
|
||||
|
||||
- g:EclimValidateSortResults (Default: 'occurrence') - If set to
|
||||
'severity', the validation results will be sorted by severity
|
||||
(errors > warnings > info > etc.)
|
||||
|
||||
vim:ft=eclimhelp
|
||||
Loading…
Add table
Add a link
Reference in a new issue