]> git.madduck.net Git - etc/vim.git/blob - test/map.vader

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

Add test for Toc nomodifiable #170
[etc/vim.git] / test / map.vader
1 Given mkd;
2 # a
3
4 b
5
6 # c
7
8 d
9
10 Execute (]] same level):
11   AssertEqual line('.'), 1
12   normal ]]
13   AssertEqual line('.'), 5
14   normal [[
15   AssertEqual line('.'), 1
16
17 Given mkd;
18 # a
19
20 b
21
22 ## c
23
24 d
25
26 Execute (]] different levels level):
27   AssertEqual line('.'), 1
28   normal ]]
29   AssertEqual line('.'), 5
30   normal [[
31   AssertEqual line('.'), 1
32
33 Given mkd;
34 # a
35
36 b
37
38 ## c
39
40 d
41
42 # e
43
44 f
45
46 Execute (][ different levels level):
47   AssertEqual line('.'), 1
48   normal ][
49   AssertEqual line('.'), 9
50   normal []
51   AssertEqual line('.'), 1
52
53 Given mkd;
54 # a
55
56 b
57
58 Execute (]c):
59   normal! 3G
60   AssertEqual line('.'), 3
61   normal ]c
62   AssertEqual line('.'), 1
63
64 Given mkd;
65 # a
66
67 Execute (Toc does not set nomodifiable on other files):
68   " Sanity check.
69   Assert &modifiable
70
71   :Toc
72   :lclose
73   :edit a
74
75   Assert &modifiable