1 <!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.0 Transitional//EN"
2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5 <link rel=
"stylesheet" media=
"screen" type=
"text/css" href=
"./style.css" />
6 <link rel=
"stylesheet" media=
"screen" type=
"text/css" href=
"./design.css" />
7 <link rel=
"stylesheet" media=
"print" type=
"text/css" href=
"./print.css" />
9 <meta http-equiv=
"Content-Type" content=
"text/html; charset=utf-8" />
14 <em>Translations of this page are also available in the following languages:
</em> <a href=
"wiki-dokuvimki.ru.html" class=
"wikilink1" title=
"wiki-dokuvimki.ru.html">Русский
</a>
17 <h1 class=
"sectionedit1" id=
"using_vim_to_edit_geda_wiki_pages">Using Vim to edit gEDA wiki pages
</h1>
21 To easy edit gEDA wiki pages in Vim you may use
<strong>DokuVimKi
</strong>.
25 You can install DokuVimKi as follows:
28 <li class=
"level1"><div class=
"li"> Download the latest version of DokuVimKi and copy all its files into appropriate directories in
<em><code>~/.vim
</code></em>:
<pre class=
"code"> git clone git://github.com/chimeric/dokuvimki.git
30 for i in doc plugin syntax; do cp
"$i
"/* ~/.vim/
"$i
"/; done
</pre>
33 <li class=
"level1"><div class=
"li"> To use
<strong><code>:h dokuvimki
</code></strong> to open DokuVimKi help you can generate Vim help tags for it using
<strong><code>:helptags ~/.vim/doc/
</code></strong> in Vim.
</div>
35 <li class=
"level1"><div class=
"li"> You can optionally use another dokuwiki syntax file. I use one from
<a href=
"http://github.com/nblock/vim-dokuwiki.git" class=
"urlextern" title=
"http://github.com/nblock/vim-dokuwiki.git" rel=
"nofollow">http://github.com/nblock/vim-dokuwiki.git
</a>.
</div>
37 <li class=
"level1"><div class=
"li"> To install DokuVimKi you need to have
<strong>xmlrpclib
</strong> installed on your system. It has probably been already installed as part of python installation. You can check this using:
<pre class=
"code"> locate xmlrpclib
</pre>
40 See
<a href=
"https://www.dokuwiki.org/devel:xmlrpc" class=
"urlextern" title=
"https://www.dokuwiki.org/devel:xmlrpc" rel=
"nofollow">https://www.dokuwiki.org/devel:xmlrpc
</a> for more information on this.
44 <li class=
"level1"><div class=
"li"> You also need to install
<strong>dokuwikixmlrpc
</strong>. Download and install the latest version:
<pre class=
"code"> git clone git://github.com/chimeric/dokuwikixmlrpc
46 sudo python setup.py install
</pre>
49 See the
<a href=
"http://docs.python.org/install/index.html" class=
"urlextern" title=
"http://docs.python.org/install/index.html" rel=
"nofollow">Python documentation
</a> for more information about installing python modules.
53 <li class=
"level1"><div class=
"li"> Then to set up DokuVimKi for gEDA you need to add some strings into your
<em><code>~/.vimrc
</code></em> file:
<pre class=
"code vim"><span class=
"kw1">let
</span> g
<span class=
"sy0">:
</span>DokuVimKi_USER =
<span class=
"st0">"your_wiki_login_name
"</span>
54 <span class=
"kw1">let
</span> g
<span class=
"sy0">:
</span>DokuVimKi_PASS =
<span class=
"st0">"YOUR_WIKI_PASSWORD
"</span>
55 <span class=
"kw1">let
</span> g
<span class=
"sy0">:
</span>DokuVimKi_URL =
<span class=
"st0">"http://wiki.geda-project.org/lib/exe/xmlrpc.php
"</span><span class=
"co1">
56 " Optional settings. See ':DWhelp' for details.
</span>
57 <span class=
"st0">""</span><span class=
"kw1">let
</span> g
<span class=
"sy0">:
</span>DokuVimKi_INDEX_WINWIDTH =
<span class=
"nu0">30</span>
58 <span class=
"st0">""</span><span class=
"kw1">let
</span> g
<span class=
"sy0">:
</span>DokuVimKi_DEFAULT_SUM =
<span class=
"st0">"[xmlrpc dokuvimki edit]
"</span></pre>
61 <li class=
"level1"><div class=
"li"> To invoke Vim with DokuVimKi features available you have to use:
<pre class=
"code"> vim +DokuVimKi
</pre>
64 To quickly invoke this command you could add the following aliases into your
<em><code>~/.bashrc
</code></em> file:
66 <pre class=
"code bash"><span class=
"co0"># Vim aliases for gEDA
</span>
67 <span class=
"kw3">alias
</span> <span class=
"re2">vimgeda
</span>=
<span class=
"st0">"vim +DokuVimKi
"</span>
68 <span class=
"kw3">alias
</span> <span class=
"re2">gvimgeda
</span>=
<span class=
"st0">"gvim +DokuVimKi
"</span></pre>
74 That
's all. Type
<strong><code>gvimgeda
</code></strong>, wait a bit and enjoy the online
75 Dokuwiki editing in Vim!
81 <!-- EDIT1 SECTION "Using Vim to edit gEDA wiki pages" [110-] --></body>