aboutsummaryrefslogtreecommitdiff
path: root/doc/tips/vim_and_ikiwiki.mdwn
blob: 5a2663969e8db038e9a0c4929cb2cd9a99061d04 (plain)
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
[[!meta date="2010-09-12 19:25:38 -0500"]]

# Vim and ikiwiki

## Syntax highlighting

[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.

------

The previous syntax definition for ikiwiki links is at [[vim_syntax_highlighting/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]].

## Page creation and navigation

The [ikiwiki-nav](http://www.vim.org/scripts/script.php?script_id=2968) package
is a vim plugin that enables you to do the following from inside vim:

  * Jumping to the file corresponding to the wikilink under the cursor.
  * Creating the file corresponding to the wikilink under the cursor (including
  directories if necessary.)
  * Jumping to the previous/next wikilink in the current file.
  * Autocomplete link names.

Download it from [here](http://www.vim.org/scripts/script.php?script_id=2968)