This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
wiki:dokuvimki [2012/10/27 06:18] vzh [xmlrpc dokuvimki edit] |
wiki:dokuvimki [2012/11/08 02:34] vzh Add the link to a new translation |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | //Translations of this page are also available in the following languages:// [[dokuvimki.ru|Русский]] | ||
====== Using Vim to edit gEDA wiki pages ====== | ====== Using Vim to edit gEDA wiki pages ====== | ||
To easy edit gEDA wiki pages in Vim you may use **DokuVimKi**. | To easy edit gEDA wiki pages in Vim you may use **DokuVimKi**. | ||
Line 7: | Line 8: | ||
cd dokuvimki | cd dokuvimki | ||
for i in doc plugin syntax; do cp "$i"/* ~/.vim/"$i"/; done </code> | for i in doc plugin syntax; do cp "$i"/* ~/.vim/"$i"/; done </code> | ||
- | - To use **'':h dokuvimki''** to open DokuVimKi help you can generate vim help tags for it using **'':helptags ~/.vim/doc/''** in Vim. | + | - To use **'':h dokuvimki''** to open DokuVimKi help you can generate Vim help tags for it using **'':helptags ~/.vim/doc/''** in Vim. |
- You can optionally use another dokuwiki syntax file. I use one from [[http://github.com/nblock/vim-dokuwiki.git]]. | - You can optionally use another dokuwiki syntax file. I use one from [[http://github.com/nblock/vim-dokuwiki.git]]. | ||
- To install DokuVimKi you need to have **xmlrpclib** installed on your system. It has probably been already installed as part of python installation. You can check this using: <code> | - To install DokuVimKi you need to have **xmlrpclib** installed on your system. It has probably been already installed as part of python installation. You can check this using: <code> | ||
Line 21: | Line 22: | ||
let g:DokuVimKi_URL = "http://wiki.geda-project.org/lib/exe/xmlrpc.php" | let g:DokuVimKi_URL = "http://wiki.geda-project.org/lib/exe/xmlrpc.php" | ||
" Optional settings. See ':DWhelp' for details. | " Optional settings. See ':DWhelp' for details. | ||
- | "let g:DokuVimKi_INDEX_WINWIDTH = 30 | + | ""let g:DokuVimKi_INDEX_WINWIDTH = 30 |
- | "let g:DokuVimKi_DEFAULT_SUM = "[xmlrpc dokuvimki edit]" | + | ""let g:DokuVimKi_DEFAULT_SUM = "[xmlrpc dokuvimki edit]" |
</code> | </code> | ||
- To invoke Vim with DokuVimKi features available you have to use: <code> vim +DokuVimKi </code> To quickly invoke this command you could add the following aliases into your //''~/.bashrc''// file: <code bash> | - To invoke Vim with DokuVimKi features available you have to use: <code> vim +DokuVimKi </code> To quickly invoke this command you could add the following aliases into your //''~/.bashrc''// file: <code bash> | ||
Line 32: | Line 33: | ||
That's all. Type **''gvimgeda''**, wait a bit and enjoy the online | That's all. Type **''gvimgeda''**, wait a bit and enjoy the online | ||
Dokuwiki editing in Vim! | Dokuwiki editing in Vim! | ||
+ | |||
+ | ~~NOTOC~~ | ||
+ |