FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
vim-debugstring/ftplugin/python.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
/
python.vim
Copy path
More file actions
More file actions
Latest commit
History
History
History
15 lines (13 loc) · 526 Bytes
Breadcrumbs
vim-debugstring
/
ftplugin
/
python.vim
Copy path
File metadata and controls
15 lines (13 loc) · 526 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
function
!
s:
DebugStringFunBase
(desc,
var
)
"
Escape quotes in description
let
l:
desc
=
a:
desc
if
stridx
(
'
"
'
,
l:
desc
)
let
l:
desc
=
substitute
(
l:
desc
,
'
"
'
,
'
\\"
'
,
"
g
"
)
endif
let
l:
debug_str
=
'
print("
'
.
l:
desc
.
'
",
'
.
a:
var
.
'
)
'
return
l:
debug_str
endfunc
command
!
-
buffer
-
nargs
=
0
AddDebugString
\
put
=
s:
DebugStringFunBase
(
g:
DebugstringPrefixStr
(),
g:
debugStringCounter
)
command
!
-
buffer
-
nargs
=
1
AddDebugStringExpr
\
put
=
s:
DebugStringFunBase
(
<args>
.
'
:
'
,
<args>
)
Back
|
FazBrowse Home
|
New Git URL