- make it work for markdown and media syntax as well
- don't find headers in preformatted text or headers of the form = foo ==
- introduce iH and aH text objects for headers plus subheaders
- add a count to include parent headers
Inspired by #462
This was committed by accident. Since 53745e8 had to be done by machine
this it not a real revert, but a redo of 53745e8. Due to the matter of
53745e8 it's slightly different.
* Allow HTML-style comment syntax
Allow <!-- HTML comments --> in vimwiki's highlight for markdown.
* Avoid matching "TODO" on word boundaries
Do not match e.g. "xTODO:" as if it were "TODO:".
This also lifts the requirement of ":" after these keywords
(it is more flexible to just require a word boundary regardless of what).
The list of diary entries now is not indented according to the vim
`shiftwidth` setting, but gets the indentation from list_margin (as is
the case for `vimwiki#base#generate_links`).
1 tabedit
2 split
3 vsplit
Similar to opening a tab,::
vimwiki#base#goto_index(v:count1, 1)
we can now open a split with::
vimwiki#base#goto_index(v:count1, 2)
and a vertical split with::
vimwiki#base#goto_index(v:count1, 3)
1 tabedit
2 split
3 vsplit
Similar to opening a tab,::
vimwiki#base#goto_index(v:count1, 1)
we can now open a split with::
vimwiki#base#goto_index(v:count1, 2)
and a vertical split with::
vimwiki#base#goto_index(v:count1, 3)
1 tabedit
2 split
3 vsplit
Similar to opening a tab,::
vimwiki#base#goto_index(1, 1)
we can now open a split with::
vimwiki#base#goto_index(1, 2)
and a vertical split with::
vimwiki#base#goto_index(1, 3)
1 tabedit
2 split
3 vsplit
Similar to opening a tab,::
vimwiki#base#goto_index(v:count1, 1)
we can now open a split with::
vimwiki#base#goto_index(v:count1, 2)
and a vertical split with::
vimwiki#base#goto_index(v:count1, 3)
This escapes the `.` preceding an extension (e.g. `.wiki`) so that it doesn't accidentally match any character.
For example: `[vimwiki](vimwiki)` was opening the `vi.wiki` page, because of this rule.
- the highlighting was wrong when the placeholder is indented
- %titleBla was wrongly recongnized as placeholder
- make them more robust by prepending \m