PotWiki

Vim plugin by Edwin Steiner to edit and navigate a PlainTextWiki.

Get it here.

Install

Put potwiki.vim in /.vim/plugin.

Config

Add this to your .vimrc:

" Plain Text Wiki plugin
let potwiki_home = "/Documents/Bliki/[IndexPage](IndexPage.html).txt"
let potwiki_suffix = ".txt"
au Filetype potwiki set sts=4
highlight [PotwikiWord](PotwikiWord.html)          guifg=darkcyan
highlight [PotwikiWordNotFound](PotwikiWordNotFound.html)  guibg=Red guifg=Yellow

Quick reference

<Leader>ww   - open the Wiki [HomePage](HomePage.html)
<Leader>wi   - open the Wiki index
<Leader>wf   - follow a [WikiWord](WikiWord.html) (can be used in any buffer!)
<Leader>we   - edit a Wiki file

While editing a Wiki file:

<Leader><Leader> - close the file
<CR>             - follow the [WikiWord](WikiWord.html) under the cursor
<Tab>            - move to the next [WikiWord](WikiWord.html)
<BS>             - move to the previous [WikiWord](WikiWord.html)
<Leader>wr       - reload [WikiWords](WikiWords.html) 

[ IndexPage | Edit on Github | Powered by PotBliki | © 2010-2012 Daniel Hjort - CC BY-SA 3.0 | http://danielhjort.net ]

blog comments powered by Disqus