166 lines
2.3 KiB
Plaintext
166 lines
2.3 KiB
Plaintext
Include: vader_includes/vader_setup.vader
|
|
|
|
# Link with dot {{{1
|
|
####################
|
|
|
|
Given vimwiki (filnames with dots):
|
|
part1.part2.part3
|
|
part1.part2.part3.md
|
|
noext
|
|
|
|
Execute (Set filename wiki_test.md):
|
|
file wiki_test.md
|
|
call SetSyntax('markdown')
|
|
|
|
Do (Linkify all):
|
|
\<Cr>
|
|
j\<Cr>
|
|
j\<Cr>
|
|
|
|
Expect (Full Words are made as links, no extension addded . -> space):
|
|
[part1 part2 part3](part1.part2.part3)
|
|
[part1 part2 part3](part1.part2.part3.md)
|
|
[noext](noext)
|
|
|
|
Given vimwiki (filnames with dots):
|
|
part1.part2.part3
|
|
part1.part2.part3.md
|
|
noext
|
|
|
|
Do (Fllow link witout markdown):
|
|
\<Cr>\<Cr>
|
|
:AssertEqual expand('%:t'), 'part1.part2.part3'\<Cr>
|
|
|
|
Do (j<Cr><Cr>):
|
|
j\<Cr>\<Cr>
|
|
:AssertEqual expand('%:t'), 'part1.part2.part3.md'\<Cr>
|
|
|
|
|
|
# Rest {{{1
|
|
##########################
|
|
|
|
Given vimwiki (Text that is not a wikilink):
|
|
test
|
|
www.google.com
|
|
https://www.google.com
|
|
multiple words
|
|
let's
|
|
let's
|
|
file.wiki
|
|
file.md
|
|
file.mw
|
|
|
|
Execute (Set syntax to default):
|
|
call SetSyntax('default')
|
|
|
|
Do (Create links default syntax):
|
|
\<Enter>
|
|
j
|
|
v$
|
|
\<Enter>
|
|
j
|
|
v$
|
|
\<Enter>
|
|
j
|
|
v$
|
|
\<Enter>
|
|
j
|
|
v$
|
|
\<Enter>
|
|
j
|
|
\<Enter>
|
|
j
|
|
\<Enter>
|
|
j
|
|
\<Enter>
|
|
j
|
|
\<Enter>
|
|
|
|
Expect (Vimwiki links):
|
|
[[test]]
|
|
[[www.google.com]]
|
|
[[https://www.google.com]]
|
|
[[multiple words]]
|
|
[[let's]]
|
|
[[let]]'s
|
|
[[file.wiki]]
|
|
[[file.md]]
|
|
[[file.mw]]
|
|
|
|
Execute (Set syntax to markdown):
|
|
call SetSyntax('markdown')
|
|
|
|
Do (Create links markdown syntax):
|
|
\<Enter>
|
|
j
|
|
v$
|
|
\<Enter>
|
|
j
|
|
v$
|
|
\<Enter>
|
|
j
|
|
v$
|
|
\<Enter>
|
|
j
|
|
v$
|
|
\<Enter>
|
|
j
|
|
\<Enter>
|
|
j
|
|
\<Enter>
|
|
j
|
|
\<Enter>
|
|
j
|
|
\<Enter>
|
|
|
|
Expect (Markdown links):
|
|
[test](test)
|
|
[www.google.com](www.google.com)
|
|
[https://www.google.com](https://www.google.com)
|
|
[multiple words](multiple words)
|
|
[let's](let's)
|
|
[let](let)'s
|
|
[file wiki](file.wiki)
|
|
[file](file.md)
|
|
[file mw](file.mw)
|
|
|
|
Execute (Set syntax to mediawiki):
|
|
call SetSyntax('media')
|
|
|
|
Do (Create links mediawiki syntax):
|
|
\<Enter>
|
|
j
|
|
v$
|
|
\<Enter>
|
|
j
|
|
v$
|
|
\<Enter>
|
|
j
|
|
v$
|
|
\<Enter>
|
|
j
|
|
v$
|
|
\<Enter>
|
|
j
|
|
\<Enter>
|
|
j
|
|
\<Enter>
|
|
j
|
|
\<Enter>
|
|
j
|
|
\<Enter>
|
|
|
|
Expect (Mediawiki links):
|
|
[[test]]
|
|
[[www.google.com]]
|
|
[[https://www.google.com]]
|
|
[[multiple words]]
|
|
[[let's]]
|
|
[[let]]'s
|
|
[[file.wiki]]
|
|
[[file.md]]
|
|
[[file.mw]]
|
|
|
|
Include: vader_includes/vader_teardown.vader
|
|
# vim: foldmethod=marker foldlevel=30
|