From 101d949a8842076f6b18702b2e3a5495339175d2 Mon Sep 17 00:00:00 2001 From: Strahinja Val Markovic Date: Thu, 21 Feb 2013 10:50:38 -0800 Subject: [PATCH] Splitting echo text on \n and echoing lines --- python/vimsupport.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/python/vimsupport.py b/python/vimsupport.py index 4ee93a28..5399d0eb 100644 --- a/python/vimsupport.py +++ b/python/vimsupport.py @@ -60,7 +60,11 @@ def PostVimMessage( message ): def EchoText( text ): - vim.command( "echom '{0}'".format( EscapeForVim( text ) ) ) + def EchoLine( text ): + vim.command( "echom '{0}'".format( EscapeForVim( text ) ) ) + + for line in text.split( '\n' ): + EchoLine( line ) def EscapeForVim( text ):