Discussion Forum » This TWiki » Using Vi to edit TWiki pages

There have been several attempts to include vi as a editor for the twiki pages.

One that works for me is using mozex, which is an add-on for Firefox. It works by adding a field when you right click on the edit box. The new field lets you choose to edit the box using the editor of choice in your mozex preferences.

If you choose vi (or gvim) you can also have syntax highlighting which is very useful when editing large content.

1. Download the sytax highlight files from http://sourceforge.net/projects/vim-twiki/

2. Open the README file and copy the files as instructed.

3. Download mozex

4. Set up your preferences using the text editor you want, I have:

/Users/juanuribe/bin/moz_vim %t

which is a script that launches gvim with syntax highlight. In my case (on the Mac) the script is:

#!/usr/bin/env bash
# File: ~/bin/moz_vim
  # starts vim with setting ft to twiki
  /opt/local/bin/gvim  -g -c 'set ft=twiki' -f $1

is easier under linux!

After that when you click on the EDIT button on a wiki page, you can right click on the textarea and you will see the mozex field. By selecting "Edit Text Area" you should see your gvim window with the text you want to edit and full with colours!!

For other possibilities see: http://twiki.org/cgi-bin/view/Codev/EditDaemonWithGVimIntegration

-- JuanUribe - 09 Dec 2008

Alternatively one could use Word to Twiki

-- DominiqueLaurence - 24 Dec 2008


Current Tags:
create new tag
, view all tags
Topic revision: r2 - 2008-12-24 - 14:02:47 - DominiqueLaurence

Computational Fluid Dynamics and Turbulence Mechanics
@ the University of Manchester
Copyright © by the contributing authors. Unless noted otherwise, all material on this web site is the property of the contributing authors.

%TMPL:DEF{"top:toolbarbuttons"}Raw editAttachPrint version