File tree Expand file tree Collapse file tree 4 files changed +22
-0
lines changed
Expand file tree Collapse file tree 4 files changed +22
-0
lines changed Original file line number Diff line number Diff line change 1+ " Contents should be identical for javascript, typescript - not creating
2+ " symlinks to make it compatible for potential Windows users.
13function ! s: DebugStringFun ()
24 let l: debug_str = ' console.log("' . g: DebugstringPrefixStr () . g: debugStringCounter . ' ");'
35 :return l: debug_str
Original file line number Diff line number Diff line change 1+ " Contents should be identical for javascript, typescript - not creating
2+ " symlinks to make it compatible for potential Windows users.
3+ function ! s: DebugStringFun ()
4+ let l: debug_str = ' console.log("' . g: DebugstringPrefixStr () . g: debugStringCounter . ' ");'
5+ :return l: debug_str
6+ endfunc
7+
8+ function ! s: DebugVarFun (desc, var )
9+ let l: debug_str = ' console.log(`' . a: desc . ' `, ' . a: var . ' )'
10+ return l: debug_str
11+ endfunc
12+
13+
14+ command ! - buffer -nargs =0 AddDebugString put = s: DebugStringFun ()
15+ command ! - buffer -nargs =1 AddDebugStringExpr
16+ \ put = s: DebugVarFun (<args> . ' : ' , <args> )
Original file line number Diff line number Diff line change @@ -46,6 +46,8 @@ Execute (Java):
4646 :set filetype=java
4747Execute (Javascript):
4848 :set filetype=javascript
49+ Execute (Typescript):
50+ :set filetype=typescript
4951Execute (Python):
5052 :set filetype=python
5153Execute (R):
Original file line number Diff line number Diff line change 1+ console.log("[[Vader-workbench]:$1$] DEBUGGING STRING ==> $2$");
2+ console.log(`a**2 + b**2: `, a**2 + b**2)
You can’t perform that action at this time.
0 commit comments