RE: how to send the output of echo command to a window?
- yixiaodafang wrote:
> Currently, when I run the echo to display multiple line ofPerhaps :echomsg is more helpful?
> the help message, the message will disappeared quickly. How
> do I keep the message displayed so I can read them? Also, how
> to send the message to a window so I can keep them there?
Here is a sample showing how to put text in a scratch window:
let text = 
call add(text, 'First message')
call add(text, 'Second message')
call add(text, 'Third message')
setlocal buftype=nofile bufhidden=hide noswapfile
call append(0, text)
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php