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:
Aaron Schrab 2012-08-08 12:48:37 -04:00
parent a1f9776037
commit 461a475d2a

View File

@ -2936,6 +2936,9 @@ if __name__ == '__main__':
send(""":set encoding=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
# and those of the UltiSnips directory under test ('.').
send(""":set runtimepath=$VIMRUNTIME,.\n""", options.session)