25 lines
389 B
Text
25 lines
389 B
Text
spawn $env(VIM) -N --noplugin -u ../vimrc
|
|
set timeout 3
|
|
expect {
|
|
timeout {exit 1}
|
|
"VIM - Vi IMproved"
|
|
}
|
|
send ":LustyBufferGrep\r"
|
|
# Launching should not have caused a backtrace and "Press ENTER ..." message
|
|
expect {
|
|
"Press ENTER" {exit 1}
|
|
"Error" {exit 1}
|
|
"Warning" {exit 1}
|
|
timeout {exit 1}
|
|
">>"
|
|
}
|
|
|
|
# ESC
|
|
send \033
|
|
send ":q\r"
|
|
expect {
|
|
timeout {exit 1}
|
|
eof
|
|
}
|
|
exit 0
|
|
|