[vim/vim] How to print without saving in message history (#8813)

41 views
Skip to first unread message

Wang Shidong

unread,
Aug 29, 2021, 3:41:59 AM8/29/21
to vim/vim, Subscribed

in viml, we have echo and echom, but when use :lua command, there is only a print() function, which will saving text into message history.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.

Yegappan Lakshmanan

unread,
Aug 30, 2021, 11:45:43 AM8/30/21
to vim_dev, reply+ACY5DGGWX6FY6NQ2JS...@reply.github.com, vim/vim, Subscribed
Hi,

On Sun, Aug 29, 2021 at 12:41 AM Wang Shidong <vim-dev...@256bit.org> wrote:

in viml, we have echo and echom, but when use :lua command, there is only a print() function, which will saving text into message history.



Did you try using the Vim echo command directly from lua?

    lua vim.command("echo 'Test'") 

- Yegappan

vim-dev ML

unread,
Aug 30, 2021, 11:46:00 AM8/30/21
to vim/vim, vim-dev ML, Your activity

Hi,

On Sun, Aug 29, 2021 at 12:41 AM Wang Shidong ***@***.***>
wrote:


> in viml, we have echo and echom, but when use :lua command, there is only
> a print() function, which will saving text into message history.
>
>
>
Did you try using the Vim echo command directly from lua?

lua vim.command("echo 'Test'")

- Yegappan

K.Takata

unread,
Sep 6, 2021, 2:25:13 AM9/6/21
to vim/vim, vim-dev ML, Comment

Closed #8813.


You are receiving this because you commented.
Reply to this email directly, view it on GitHub.

K.Takata

unread,
Sep 6, 2021, 2:25:16 AM9/6/21
to vim/vim, vim-dev ML, Comment

There is a workaround. I think this can be closed.


You are receiving this because you commented.
Reply to this email directly, view it on GitHub.

Reply all
Reply to author
Forward
0 new messages