7
|
1 This is a test of 'virtualedit'.
|
|
2
|
|
3 STARTTEST
|
|
4 :so small.vim
|
|
5 :set noswf
|
|
6 :set ve=all
|
|
7 -dgg
|
|
8 :"
|
|
9 :" Insert "keyword keyw", ESC, C CTRL-N, shows "keyword ykeyword".
|
|
10 :" Repeating CTRL-N fixes it. (Mary Ellen Foster)
|
|
11 2/w
|
|
12 C
|
|
13 :"
|
|
14 :" Using "C" then then <CR> moves the last remaining character to the next
|
|
15 :" line. (Mary Ellen Foster)
|
|
16 j^/are
|
|
17 C
are belong to vim
|
|
18 :"
|
|
19 :" When past the end of a line that ends in a single character "b" skips
|
|
20 :" that word.
|
|
21 ^$15lbC7
|
|
22 :"
|
|
23 :" Make sure 'i' works
|
|
24 $4li<-- should be 3 ' '
|
|
25 :"
|
|
26 :" Make sure 'C' works
|
|
27 $4lC<-- should be 3 ' '
|
|
28 :"
|
|
29 :" Make sure 'a' works
|
|
30 $4la<-- should be 4 ' '
|
|
31 :"
|
|
32 :" Make sure 'A' works
|
|
33 $4lA<-- should be 0 ' '
|
|
34 :"
|
|
35 :" Make sure 'D' works
|
|
36 $4lDi<-- 'D' should be intact
|
|
37 :"
|
|
38 :" Test for yank bug reported by Mark Waggoner.
|
|
39 :set ve=block
|
|
40 ^2w3jyGp
|
|
41 :"
|
|
42 :" Test "r" beyond the end of the line
|
|
43 :set ve=all
|
|
44 /^"r"
|
|
45 $5lrxa<-- should be 'x'
|
|
46 :"
|
|
47 :" Test to make sure 'x' can delete control characters
|
|
48 :set display=uhex
|
|
49 ^xxxxxxi[This line should contain only the text between the brackets.]
|
|
50 :set display=
|
|
51 :"
|
|
52 :" Test for ^Y/^E due to bad w_virtcol value, reported by
|
|
53 :" Roy <royl@netropolis.net>.
|
|
54 ^O3li4li4li <-- should show the name of a noted text editor
|
|
55 ^o4li4li4li <-- and its version number-dd
|
|
56 :"
|
4013
|
57 :" Test for yanking and pasting using the small delete register
|
|
58 gg/^foo
|
|
59 dewve"-p
|
7
|
60 :wq! test.out
|
|
61 ENDTEST
|
4013
|
62 foo, bar
|
7
|
63 keyword keyw
|
|
64 all your base are belong to us
|
|
65 1 2 3 4 5 6
|
|
66 'i'
|
|
67 'C'
|
|
68 'a'
|
|
69 'A'
|
|
70 'D'
|
|
71 this is a test
|
|
72 this is a test
|
|
73 this is a test
|
|
74 "r"
|
|
75 ab
sd
|
|
76 abcv6efi.him0kl
|
|
77
|
|
78
|