From ee4c247df124b38b478f8ca0f19d78fdc95ca042 Mon Sep 17 00:00:00 2001 From: Peter Odding Date: Sun, 19 May 2013 17:47:16 +0200 Subject: Improve reporting of multi-line messages (now split over lines) --- autoload/xolox/misc/msg.vim | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'autoload/xolox') diff --git a/autoload/xolox/misc/msg.vim b/autoload/xolox/misc/msg.vim index 9ba2b7c..74657c8 100644 --- a/autoload/xolox/misc/msg.vim +++ b/autoload/xolox/misc/msg.vim @@ -1,6 +1,6 @@ " Vim auto-load script " Author: Peter Odding -" Last Change: March 15, 2011 +" Last Change: May 19, 2013 " URL: http://peterodding.com/code/vim/misc/ if !exists('g:xolox_message_buffer') @@ -56,7 +56,10 @@ function! s:show_message(hlgroup, args) augroup END execute 'echohl' a:hlgroup " Redraw to avoid |hit-enter| prompt. - redraw | echomsg message + redraw + for line in split(message, "\n") + echomsg line + endfor if g:xolox_message_buffer > 0 call add(g:xolox_messages, message) if len(g:xolox_messages) > g:xolox_message_buffer -- cgit v1.2.3