comparison src/testdir/test93.in @ 4172:1c819b05529c v7.3.838

updated for version 7.3.838 Problem: Insufficient testing for mksession. Solution: Add tests. (mostly by Roland Eggner)
author Bram Moolenaar <bram@vim.org>
date Tue, 26 Feb 2013 17:21:29 +0100
parents
children 91f6a28e010d
comparison
equal deleted inserted replaced
4171:5b33343b14a4 4172:1c819b05529c
1 vim: set ft=vim fenc=latin1:
2
3 Tests if :mksession saves cursor columns correctly in presence of tab and
4 multibyte characters when fileencoding=latin1.
5
6 STARTTEST
7 :so mbyte.vim
8 :if !has('mksession')
9 : e! test.ok
10 : wq! test.out
11 :endif
12 :set sessionoptions=buffers splitbelow fileencoding=latin1
13 /^start:
14 :vsplit
15 j16|:split
16 j16|:split
17 j16|:split
18 j8|:split
19 j8|:split
20 j16|:split
21 j16|:split
22 j16|:wincmd l
23 /^start:
24 :set nowrap
25 j16|3zl:split
26 j016|3zl:split
27 j016|3zl:split
28 j08|3zl:split
29 j08|3zl:split
30 j016|3zl:split
31 j016|3zl:split
32 j016|3zl:split
33 :mksession! test.out
34 :new test.out
35 :v/\(^ *normal! 0\|^ *exe 'normal!\)/d
36 :w
37 :qa!
38 ENDTEST
39
40 start:
41 no multibyte chAracter
42 one leaDing tab
43 four leadinG spaces
44 two consecutive tabs
45 two tabs in one line
46 one ä multibyteCharacter
47 aä Ä two multiByte characters
48 Aäöü three mulTibyte characters