mirror of
https://github.com/leafOfTree/vim-vue-plugin.git
synced 2026-11-03 02:47:36 +08:00
15: Moved Log function to autoload and replace echom
This commit is contained in:
1 parent
4b0e807db4
commit
2da2a2fe03
3 files changed
+22
-22
No files matched your search
@@ -0,0 +1,9 @@
|
||||
let s:name = 'vim-vue-plugin'
|
||||
let s:debug = exists("g:vim_vue_plugin_debug")
|
||||
\ && g:vim_vue_plugin_debug == 1
|
||||
|
||||
function! vue#Log(msg)
|
||||
if s:debug
|
||||
echom '['.s:name.']['.v:lnum.'] '.a:msg
|
||||
endif
|
||||
endfunction
|
||||
Reference in new issue
Block a user