File: list_move.vader

package info (click to toggle)
vim-vimwiki 2024.01.24-3
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 3,692 kB
  • sloc: sh: 313; makefile: 2
file content (45 lines) | stat: -rw-r--r-- 743 bytes parent folder | download | duplicates (2)
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
38
39
40
41
42
43
44
45
# Move and edit a list (autocommand, config_

# Test J {{{1
############################################################

Given vimwiki (Markdown * [ ] list {{{2):
  * [ ] Top Level
    * [o] Child 1
    * [X] Child 2

    * [X] Post space


Execute (Set syntax markdown):
  call SetSyntax('markdown')

Do (JJJJ):
  JJJJ
  0y$
  :call AssertIfVersion(704, '* [ ] Top Level Child 1 Child 2 Post space', @")\<Cr>



Given vimwiki (Markdown * and - list {{{2):
  * one
  * two
  - three
  - for


Execute (Set syntax markdown):
  call SetSyntax('markdown')

Do (JjJ):
  JjJ
  gg
  0y$
  :call AssertIfVersion(704, '* one two', @")\<Cr>
  G
  0y$
  :call AssertIfVersion(704, '- three for', @")\<Cr>



# vim: sw=2:foldlevel=30:foldmethod=indent: