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 :"
|
6468
|
47 :" Test "r" on a tab
|
|
48 :" Note that for this test, 'ts' must be 8 (the default).
|
|
49 ^5lrxA<-- should be ' x '
|
|
50 :"
|
7
|
51 :" Test to make sure 'x' can delete control characters
|
|
52 :set display=uhex
|
|
53 ^xxxxxxi[This line should contain only the text between the brackets.]
|
|
54 :set display=
|
|
55 :"
|
|
56 :" Test for ^Y/^E due to bad w_virtcol value, reported by
|
|
57 :" Roy <royl@netropolis.net>.
|
|
58 ^O3li4li4li <-- should show the name of a noted text editor
|
|
59 ^o4li4li4li <-- and its version number-dd
|
|
60 :"
|
4013
|
61 :" Test for yanking and pasting using the small delete register
|
|
62 gg/^foo
|
|
63 dewve"-p
|
7
|
64 :wq! test.out
|
|
65 ENDTEST
|
4013
|
66 foo, bar
|
7
|
67 keyword keyw
|
|
68 all your base are belong to us
|
|
69 1 2 3 4 5 6
|
|
70 'i'
|
|
71 'C'
|
|
72 'a'
|
|
73 'A'
|
|
74 'D'
|
|
75 this is a test
|
|
76 this is a test
|
|
77 this is a test
|
|
78 "r"
|
6468
|
79 "r"
|
7
|
80 ab
sd
|
|
81 abcv6efi.him0kl
|
|
82
|
|
83
|