Mercurial > vim
view src/testdir/test13.in @ 9501:f0201deac2a2 v7.4.2031
commit https://github.com/vim/vim/commit/89b10421ca1aea55acbafac1df93be4e20210ceb
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Jul 12 22:51:22 2016 +0200
patch 7.4.2031
Problem: The list_lbr_utf8 test fails if ~/.vim/syntax/c.vim sets
'textwidth' to a non-zero value. (Oyvind A. Holm)
Solution: Add a setup.vim file that sets 'runtimepath' and $HOME to a safe
value. (partly by Christian Brabandt, closes #912)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Tue, 12 Jul 2016 23:00:06 +0200 |
parents | 0229cfffc560 |
children |
line wrap: on
line source
Tests for autocommands on :close command Write three files and open them, each in a window. Then go to next window, with autocommand that deletes the previous one. Do this twice, writing the file. Also test deleting the buffer on a Unload event. If this goes wrong there will be the ATTENTION prompt. Also test changing buffers in a BufDel autocommand. If this goes wrong there are ml_line errors and/or a Crash. STARTTEST :so small.vim :/^start of testfile/,/^end of testfile/w! Xtestje1 :/^start of testfile/,/^end of testfile/w! Xtestje2 :/^start of testfile/,/^end of testfile/w! Xtestje3 :e Xtestje1 otestje1 :w :sp Xtestje2 otestje2 :w :sp Xtestje3 otestje3 :w :au WinLeave Xtestje2 bwipe :w! test.out :au WinLeave Xtestje1 bwipe Xtestje3 :close :w >>test.out :e Xtestje1 :bwipe Xtestje2 Xtestje3 test.out :au! :au! BufUnload Xtestje1 bwipe :e Xtestje3 :w >>test.out :e Xtestje2 :sp Xtestje1 :e :w >>test.out :au! :only :e Xtestje1 :bwipe Xtestje2 Xtestje3 test.out test13.in :au BufWipeout Xtestje1 buf Xtestje1 :bwipe :w >>test.out :only :help :wincmd w :1quit :$put ='Final line' :$w >>test.out :qa! ENDTEST start of testfile contents contents contents end of testfile