Created
August 9, 2011 15:54
-
-
Save stephenprater/1134427 to your computer and use it in GitHub Desktop.
appending logger
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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