File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ PHP | :heavy_check_mark: | :heavy_check_mark:
6666Python | :heavy_check_mark : | :heavy_check_mark :
6767R | :heavy_check_mark : | :heavy_check_mark :
6868Ruby | :heavy_check_mark : | :heavy_check_mark :
69- Rust | :x : | :x :
69+ Rust | :heavy_check_mark : | :heavy_check_mark :
7070Shell | :heavy_check_mark : | :heavy_check_mark :
7171Vim | :heavy_check_mark : | :heavy_check_mark :
7272
Original file line number Diff line number Diff line change 1+ function ! s: DebugStringFunBase (desc, var )
2+ let l: debug_str = ' println!("' . a: desc . ' {}", ' . a: var . ' );'
3+ return l: debug_str
4+ endfunc
5+
6+ command ! - buffer -nargs =0 AddDebugString
7+ \ put = s: DebugStringFunBase (g: DebugstringPrefixStr (), g: debugStringCounter )
8+ command ! - buffer -nargs =1 AddDebugStringExpr
9+ \ put = s: DebugStringFunBase (<args> . ' : ' , <args> )
Original file line number Diff line number Diff line change @@ -49,6 +49,8 @@ Execute (R):
4949 :set filetype=r
5050Execute (Ruby):
5151 :set filetype=ruby
52+ Execute (Rust):
53+ :set filetype=rs
5254Execute (Shell):
5355 :set filetype=sh
5456Execute (Vim):
Original file line number Diff line number Diff line change 1+ println ! ( "[[Vader-workbench]:$1$] DEBUGGING STRING ==> {}" , $2 $) ;
2+ println ! ( "a**2 + b**2: {}" , a* * 2 + b* * 2 ) ;
Original file line number Diff line number Diff line change 55unset CDPATH
66
77cd " $( dirname " $( dirname " ${BASH_SOURCE[0]} " ) " ) "
8- vim -Nu test/vimrc -c ' Vader! test/*'
8+ command vim -Nu test/vimrc -c ' Vader! test/*'
99cd -
You can’t perform that action at this time.
0 commit comments