File tree Expand file tree Collapse file tree 2 files changed +19
-1
lines changed
Expand file tree Collapse file tree 2 files changed +19
-1
lines changed Original file line number Diff line number Diff line change 1+ " Contents should be identical for zsh, sh - not creating symlinks to make it
2+ " compatible for potential Windows users.
13let g: path = fnamemodify (resolve (expand (' <sfile>:p' )), ' :h' )
24
35function ! s: DebugStringFun (desc, ... )
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ " Contents should be identical for zsh, sh - not creating symlinks to make it
2+ " compatible for potential Windows users.
3+ let g: path = fnamemodify (resolve (expand (' <sfile>:p' )), ' :h' )
4+
5+ function ! s: DebugStringFun (desc, ... )
6+ execute ' source ' . g: path . ' /common/sh_like.vim'
7+ if len (a: 000 ) == # 0
8+ return DebugStringFunShellBase (a: desc )
9+ else
10+ return DebugStringFunShellBase (a: desc , a: 1 )
11+ endif
12+ endfunc
13+
14+ command ! - buffer -nargs =0 AddDebugString
15+ \ put = s: DebugStringFun (g: DebugstringPrefixStr () . g: debugStringCounter )
16+ command ! - buffer -nargs =1 AddDebugStringExpr
17+ \ put = s: DebugStringFun (<args> . ' : ' , <args> )
You can’t perform that action at this time.
0 commit comments