Syntax Highlighting for Vi and Structured Text |
Created by pupq . Last modified 2003-10-02 03:18:33. |
A simple StructuredText mode for Vim. |
Using Casey Duncan's External Editor, or using WebDAV, you can edit your Zope site's objects using your favorite text editor directly. I use ZWikis a lot for planning programming projects, and working with the web interface is annoying when editing a large, complex textbox -- I prefer to use vi for this. So, I wrote a vi syntax coloring/filetype mode for ZWiki structured texts. (It can work with any kind of structured text object you have, too) To use: 1) Edit your External Editor configuration file. Add a section for structured text documents (use your meta type, for ZWikis, this is ZWiki Page). Set the extension to be ".stx" This way, vi will receive a document it can identify as structured text. For example, for ZWiki pages, add: [meta-type:ZWiki Page] extension=.stx 2) Unzip the Vi/StructuredText File into your vimfiles directory. For Windows users, this will be c:\vim (or wherever the root of your VIM installation is); for Unix/Linux users, this will be ~/.vim. This archives contains:
Features:
Happy Vimming! Happy Zoping! |