]> git.madduck.net Git - etc/vim.git/blob - .vim/bundle/vim-markdown/test/indent.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:

WhatHighlight syntax analysis
[etc/vim.git] / .vim / bundle / vim-markdown / test / indent.vader
1 Given markdown;
2 * item1
3
4 Do (insert enter at list end):
5   A\<cr>item2
6
7 Expect (auto insert * and indent level is same):
8   * item1
9   * item2
10
11 Given markdown;
12
13 Execute:
14   syntax off
15
16 Do (insert enter at list end with syntax off):
17   i* item1\<cr>item2
18
19 Expect (auto insert * and indent level is same):
20   * item1
21   * item2
22
23 Execute:
24   syntax on
25
26 Given markdown;
27 ```
28 * item1
29
30 Do (insert after list items in code block):
31   jotext
32
33 Expect (no autoindent in code block):
34   ```
35   * item1
36   text
37
38 Given markdown;
39 * item1
40
41 a
42
43 Do (insert enter after list):
44   jji\<cr>b
45
46 Expect (no autoindent outside list):
47   * item1
48
49
50   ba
51
52 Given markdown;
53 -   a
54
55     # b
56
57 Do (insert header after list):
58   jjwi#
59
60 Expect (no indent header after list):
61   -   a
62
63   ## b
64
65 Given markdown;
66 * item1
67
68 Do (new line from the first item of the list and add the second item):
69   o* item2
70
71 Expect (insert 4 spaces to the head of second item):
72   * item1
73       * item2