Skip to content

Instantly share code, notes, and snippets.

@stephenprater
Created August 9, 2011 15:54
Show Gist options
  • Save stephenprater/1134427 to your computer and use it in GitHub Desktop.
Save stephenprater/1134427 to your computer and use it in GitHub Desktop.
appending logger
function! s:Logger.put(string) dict
if g:ruby_debugger_debug_mode
let string = 'Vim plugin, ' . strftime("%H:%M:%S") . ': ' . a:string
execute('set verbosefile=' . g:RubyDebugger.logger.file)
silent verbose echo substitute(string,'/^\s*/','',"")
execute('set verbosefile=""')
endif
endfunction
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment