aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJavier Rojas <jerojasro@devnull.li>2010-07-19 01:11:22 -0500
committerJavier Rojas <jerojasro@devnull.li>2010-07-19 01:11:22 -0500
commitcfed58f2908886c222c7305b1be4044de800fc6d (patch)
tree494ddc1792778953a3feda3082c331d91c064c54
parent6d33160faf0d5bbe8f405b60f32893607a534d4c (diff)
downloadikiwiki-cfed58f2908886c222c7305b1be4044de800fc6d.tar
ikiwiki-cfed58f2908886c222c7305b1be4044de800fc6d.tar.gz
new syntax file for ikiwiki files in vim
-rw-r--r--doc/forum/ikiwiki_vim_syntaxfile.mdwn5
-rw-r--r--doc/forum/navigation_of_wiki_pages_on_local_filesystem_with_vim.mdwn3
-rw-r--r--doc/tips/vim_syntax_highlighting.mdwn16
3 files changed, 20 insertions, 4 deletions
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]]
+
+<a id='syn-maintenance'>
+
>>>>>
>>>>>> 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]]