FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
phpactor/plugin/phpactor.vim at master · phpactor/phpactor · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
phpactor
/
phpactor
Public
Uh oh!
There was an error while loading.
Please reload this page
.
Notifications
You must be signed in to change notification settings
Fork
164
Star
1.9k
Code
Issues
267
Pull requests
27
Discussions
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Discussions
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
phpactor
/
plugin
/
phpactor.vim
Copy path
More file actions
More file actions
Latest commit
History
History
History
154 lines (128 loc) · 5.12 KB
Breadcrumbs
phpactor
/
plugin
/
phpactor.vim
Copy path
File metadata and controls
154 lines (128 loc) · 5.12 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
if
exists
(
'
g:loaded_phpactor
'
)
finish
endif
let
g:
loaded_phpactor
=
1
"
Config {{{
let
g:
phpactorpath
=
expand
(
'
<sfile>:p:h
'
) .
'
/..
'
let
g:
phpactorbinpath
=
g:
phpactorpath
.
'
/bin/phpactor
'
let
g:
phpactorInitialCwd
=
getcwd
()
let
g:
phpactorCompleteLabelTruncateLength
=
50
"
"
"
Path to the PHP binary used by Phpactor
let
g:
phpactorPhpBin
=
get
(
g:
,
'
phpactorPhpBin
'
,
'
php
'
)
"
"
"
The Phpactor branch to use when calling @command(PhpactorUpdate)
let
g:
phpactorBranch
=
get
(
g:
,
'
phpactorBranch
'
,
'
master
'
)
"
"
"
Automatically import classes when using VIM native omni-completion
let
g:
phpactorOmniAutoClassImport
=
get
(
g:
,
'
phpactorOmniAutoClassImport
'
,
v:
true
)
"
"
"
Ignore case when suggestion completion results
let
g:
phpactorCompletionIgnoreCase
=
get
(
g:
,
'
phpactorCompletionIgnoreCase
'
,
1
)
"
"
"
Function to use when populating a list of code references. The default
"
is to use the VIM quick-fix list.
let
g:
phpactorQuickfixStrategy
=
get
(
g:
,
'
phpactorQuickfixStrategy
'
,
'
phpactor#quickfix#vim
'
)
"
"
"
Function to use when presenting a user with a choice of options. The default
"
is to use the VIM inputlist.
let
g:
phpactorInputListStrategy
=
get
(
g:
,
'
phpactorInputListStrategy
'
,
'
phpactor#input#list#inputlist
'
)
"
"
"
When jumping to a file location: if the target file open in a window, switch
"
to that window instead of switching buffers. The default is false.
let
g:
phpactorUseOpenWindows
=
get
(
g:
,
'
phpactorUseOpenWindows
'
,
v:
false
)
"
"
"
Each Phpactor request requires the project's root directory to be known. By
"
default it will assume the directory in which you started VIM, but this may
"
not suit all workflows.
"
"
This setting allows |Funcref| to be specified. This function should return
"
the working directory in whichever way is required. No arguments are passed
"
to this function.
let
g:
PhpactorRootDirectoryStrategy
=
get
(
g:
,
'
PhpactorRootDirectoryStrategy
'
, {
-
>
g:
phpactorInitialCwd
})
"
Config }}}
"
Commands {{{
"
"
"
Update Phpactor to the latest version using the branch
"
defined with @setting(g:phpactorBranch)
command
!
-
nargs
=
0
PhpactorUpdate
call
phpactor#Update
()
"
"
"
Clear the entire cache - this will take effect for all projects.
command
!
-
nargs
=
0
PhpactorCacheClear
call
phpactor#CacheClear
()
"
"
"
Show some information about Phpactor's status
command
!
-
nargs
=
0
PhpactorStatus
call
phpactor#Status
()
"
"
"
Dump Phpactor's configuration
command
!
-
nargs
=
0
PhpactorConfig
call
phpactor#Config
()
"
"
"
Expand the class name under the cursor to it's fully-qualified-name
command
!
-
nargs
=
0
PhpactorClassExpand
call
phpactor#ClassExpand
()
"
"
"
Create a new class. You will be offered a choice of templates.
command
!
-
nargs
=
0
PhpactorClassNew
call
phpactor#ClassNew
()
"
"
"
@default target=`edit`
"
"
Goto the definition of the symbol under the cursor.
"
Opens in the [target] window, see @section(window-target) for
"
the list of possible targets.
"
|<mods>| can be provided to the command to change how the window will be
"
opened.
"
"
Examples:
"
>
"
" Opens in the current buffer
"
PhpactorGotoDefinition
"
"
" Opens in a vertical split opened on the right side
"
botright PhpactorGotoDefinition vsplit
"
vertical botright PhpactorGotoDefinition split
"
"
" Opens in a new tab
"
PhpactorGotoDefinition tabnew
"
<
command
!
-
nargs
=? -
complete
=
customlist
,
s:
CompleteWindowTarget
PhpactorGotoDefinition
call
phpactor#GotoDefinition
(
<q-args>
,
<q-mods>
)
"
"
"
deprecated, use @command(PhpactorGotoDefinition) instead
"
"
As with @command(PhpactorGotoDefinition) but open in a vertical split.
command
!
-
nargs
=
0
PhpactorGotoDefinitionVsplit
\
echoerr
'
PhpactorGotoDefinitionVsplit is deprecated, use PhpactorGotoDefinition instead
'
|
\
<mods>
PhpactorGotoDefinition
vsplit
"
"
"
deprecated, use @command(PhpactorGotoDefinition) instead
"
"
As with @command(PhpactorGotoDefinition) but open in an horizontal split.
command
!
-
nargs
=
0
PhpactorGotoDefinitionHsplit
\
echoerr
'
PhpactorGotoDefinitionHsplit is deprecated, use PhpactorGotoDefinition instead
'
|
\
<mods>
PhpactorGotoDefinition hsplit
"
"
"
deprecated, use @command(PhpactorGotoDefinition) instead
"
"
As with @command(PhpactorGotoDefinition) but open in a new tab.
command
!
-
nargs
=
0
PhpactorGotoDefinitionTab
\
echoerr
'
PhpactorGotoDefinitionTab is deprecated, use PhpactorGotoDefinition instead
'
|
\
PhpactorGotoDefinition new_tab
"
"
"
@usage [target]
"
"
Same as @command(PhpactorGotoDefinition) but goto the type of the symbol
"
under the cursor.
command
!
-
nargs
=? -
complete
=
customlist
,
s:
CompleteWindowTarget
PhpactorGotoType
call
phpactor#GotoType
(
<q-args>
,
<q-mods>
)
"
"
"
@usage [target]
"
"
Same as @command(PhpactorGotoDefinition) but goto the implementation of the
"
symbol under the cursor.
"
"
If there is more than one result the quickfix strategy will be used and [target]
"
will be ignored, see @setting(g:phpactorQuickfixStrategy).
command
!
-
nargs
=? -
complete
=
customlist
,
s:
CompleteWindowTarget
PhpactorGotoImplementations
call
phpactor#GotoImplementations
(
<q-args>
,
<q-mods>
)
"
Commands }}}
"
Functions {{{
function
!
s:
CompleteWindowTarget
(argLead,
...
)
abort
return
filter
(
phpactor#windowTargets
(), {
k
,
v
-
>
0
==
stridx
(
v
,
a:
argLead
)})
endfunction
"
}}}
"
vim:
et
ts
=
4
sw
=
4
fdm
=
marker
Back
|
FazBrowse Home
|
New Git URL