From: Javier Rojas Date: Mon, 19 Jul 2010 06:11:22 +0000 (-0500) Subject: new syntax file for ikiwiki files in vim X-Git-Tag: 3.20100722~9 X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/commitdiff_plain/cfed58f2908886c222c7305b1be4044de800fc6d?hp=6d33160faf0d5bbe8f405b60f32893607a534d4c new syntax file for ikiwiki files in vim --- diff --git a/doc/forum/ikiwiki_vim_syntaxfile.mdwn b/doc/forum/ikiwiki_vim_syntaxfile.mdwn index d0f8d259e..50ae9097e 100644 --- a/doc/forum/ikiwiki_vim_syntaxfile.mdwn +++ b/doc/forum/ikiwiki_vim_syntaxfile.mdwn @@ -1,3 +1,8 @@ +See the new syntax file [[here|tips/vim_syntax_highlighting]]. It fixed both of +the problems reported below. + +---- + Hi all, I'm teaching myself how to write syntax files for vim by fixing several issues diff --git a/doc/forum/navigation_of_wiki_pages_on_local_filesystem_with_vim.mdwn b/doc/forum/navigation_of_wiki_pages_on_local_filesystem_with_vim.mdwn index 7bc032949..7bfcf3088 100644 --- a/doc/forum/navigation_of_wiki_pages_on_local_filesystem_with_vim.mdwn +++ b/doc/forum/navigation_of_wiki_pages_on_local_filesystem_with_vim.mdwn @@ -85,6 +85,9 @@ the plugin has, as of now, two problems: >>>>> plugin and putting it there, I'd be fine with that. I think it needs >>>>> some slight work to catch up with changes to ikiwiki's directives >>>>> (!-prefixed now), and wikilinks (able to have spaces now). --[[Joey]] + + + >>>>> >>>>>> I don't really know too much about syntax definitions in vim. But I'll give it a stab. I know it fails when there are 2 \[[my text|link]] wikilinks in the same page. >>>>>> I'm not promising anything, though ;) --[[jerojasro]] diff --git a/doc/tips/vim_syntax_highlighting.mdwn b/doc/tips/vim_syntax_highlighting.mdwn index 18b2f1c92..bf7104aec 100644 --- a/doc/tips/vim_syntax_highlighting.mdwn +++ b/doc/tips/vim_syntax_highlighting.mdwn @@ -1,7 +1,15 @@ -[[ikiwiki.vim]] is a vim syntax highlighting file for ikiwiki -[[ikiwiki/markdown]] files. - -Installation instructions are at the top of the file. +[ikiwiki-syntax](http://www.vim.org/scripts/script.php?script_id=3156) is a vim +syntax highlighting file for ikiwiki [[ikiwiki/markdown]] files. It highlights +directives and wikilinks. It only supports prefixed directives, i.e., +\[[!directive foo=bar baz]], not the old format with spaces. See also: [[follow_wikilinks_from_inside_vim]] + +------ + +The previous syntax definition for ikiwiki links is at [[ikiwiki.vim]]; however, +it seems to not be [[maintained +anymore|forum/navigation_of_wiki_pages_on_local_filesystem_with_vim#syn-maintenance]], +and it has some [[issues|forum/ikiwiki_vim_syntaxfile]]. + [[!tag vim]]