FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
vim-debugstring/ftplugin/php.vim at master · bergercookie/vim-debugstring · GitHub
bergercookie
/
vim-debugstring
Public
Uh oh!
There was an error while loading.
Please reload this page
.
Notifications
You must be signed in to change notification settings
Fork
6
Star
36
Code
Issues
2
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
vim-debugstring
/
ftplugin
/
php.vim
Copy path
More file actions
More file actions
Latest commit
History
History
History
16 lines (13 loc) · 503 Bytes
Breadcrumbs
vim-debugstring
/
ftplugin
/
php.vim
Copy path
File metadata and controls
16 lines (13 loc) · 503 Bytes
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
let
g:
path
=
fnamemodify
(
resolve
(
expand
(
'
<sfile>:p
'
)),
'
:h
'
)
function
!
s:
DebugStringFun
(desc,
...
)
let
l:
debug_str
=
'
echo "
'
.
a:
desc
if
len
(
a:
000
)
==
#
1
let
l:
debug_str
.=
'
$
'
.
a:
1
endif
let
l:
debug_str
.=
'
\n";
'
return
l:
debug_str
endfunc
command
!
-
buffer
-
nargs
=
0
AddDebugString
\
put
=
s:
DebugStringFun
(
g:
DebugstringPrefixStr
() .
g:
debugStringCounter
)
command
!
-
buffer
-
nargs
=
1
AddDebugStringExpr
\
put
=
s:
DebugStringFun
(
<args>
.
'
:
'
,
<args>
)
Back
|
FazBrowse Home
|
New Git URL