-
Notifications
You must be signed in to change notification settings - Fork 27
/
Copy pathmessages.vroom
29 lines (20 loc) · 934 Bytes
/
messages.vroom
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
You can check message output with a ` ~ ` line. You must catch messages after
the command that causes them if you want it to work.
:echomsg "Hello."
~ Hello.
This mechanism allows vroom to know what lines errors occur on. You can match
multiple messages on one command.
:set cmdheight=99
:echomsg "First" | echomsg "Second"
~ First
~ Second
Note sometimes multiple lines of output cause vroom to get stuck at a "Hit ENTER
to continue" prompt (typically in Neovim mode), and increasing cmdheight is a
simple workaround to avoid getting stuck. See
https://github.com/google/vroom/issues/83.
By default, vroom doesn't mind if you miss messages. It only minds if you miss
messages that vroom thinks look like error messages.
You can tweak this behavior with the --message-strictness flag.
For example, the test below will fail with --message-strictness=STRICT, because
the message is not caught.
:echomsg "Third."