15: Moved Log function to autoload and replace echom

This commit is contained in:
DCRichards
2019-10-08 10:34:52 +01:00
parent 4b0e807db4
commit 2da2a2fe03
3 changed files with 22 additions and 22 deletions

9
autoload/vue.vim Normal file
View File

@@ -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