Have test script set vim buffer type to nofile
Instruct vim not to complain about quitting without writing the buffer used to run tests by setting the buftype option to nofile.
This commit is contained in:
parent
a1f9776037
commit
461a475d2a
3
test.py
3
test.py
@ -2936,6 +2936,9 @@ if __name__ == '__main__':
|
|||||||
send(""":set encoding=utf-8\n""", options.session)
|
send(""":set encoding=utf-8\n""", options.session)
|
||||||
send(""":set fileencoding=utf-8\n""", options.session)
|
send(""":set fileencoding=utf-8\n""", options.session)
|
||||||
|
|
||||||
|
# Tell vim not to complain about quitting without writing
|
||||||
|
send(""":set buftype=nofile\n""", options.session)
|
||||||
|
|
||||||
# Ensure runtimepath includes only Vim's own runtime files
|
# Ensure runtimepath includes only Vim's own runtime files
|
||||||
# and those of the UltiSnips directory under test ('.').
|
# and those of the UltiSnips directory under test ('.').
|
||||||
send(""":set runtimepath=$VIMRUNTIME,.\n""", options.session)
|
send(""":set runtimepath=$VIMRUNTIME,.\n""", options.session)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user