4172
|
1 vim: set ft=vim fenc=utf-8:
|
|
2
|
|
3 Tests if :mksession saves cursor columns correctly in presence of tab and
|
|
4 multibyte characters when fileencoding=utf-8.
|
|
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=utf-8
|
|
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
|
5363
|
36 :w! test.out
|
4172
|
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 “b” two multiByte characters
|
|
48 “c”1€ three mulTibyte characters
|