blob: a2eadd3c1b84697b793d3d239aac2d08340f7556 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
Test for encryption.
STARTTEST
:so small.vim
:/^start of testfile/+1
:let lines = getline('.', '$')
:new
:call append(0, lines)
:$d
:X
foobar
foobar
:w! Xtestfile
:bwipe!
:e Xtestfile
foobar
:let dec1_lines = getline('.', '$')
:%s/^/2/
:set key=
:set cryptmethod=1
:X
barfoo
barfoo
:w! Xtestfile
:bwipe!
:e Xtestfile
barfoo
:call append(0, dec1_lines)
:set key=
:w! test.out
:qa!
ENDTEST
start of testfile
01234567890123456789012345678901234567
line 2 foo bar blah
line 3 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|