Skip to content

Commit 83c68a7

Browse files
committed
Use echom instead of echo in vimscript
1 parent ef4fdcf commit 83c68a7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

ftplugin/vim.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
function! s:DebugStringFunBase(desc, var)
2-
let l:debug_str = "echo '" . a:desc . "' . string(" . a:var . ")"
2+
let l:debug_str = "echom '" . a:desc . "' . string(" . a:var . ")"
33
return l:debug_str
44
endfunc
55

test/ft/a.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
echo '[[Vader-workbench]:$1$] DEBUGGING STRING ==> ' . string($2$)
2-
echo 'a**2 + b**2: ' . string(a**2 + b**2)
1+
echom '[[Vader-workbench]:$1$] DEBUGGING STRING ==> ' . string($2$)
2+
echom 'a**2 + b**2: ' . string(a**2 + b**2)

0 commit comments

Comments
 (0)