discuss: For all you Vim users out there
Subject:
Re: For all you Vim users out there
From:
David Lawyer ####@####.####
Date:
14 Sep 2001 01:33:52 -0000
Message-Id: <20010913170506.I304@lafn.org>
On Thu, Sep 13, 2001 at 10:15:17PM +0530, Vivek Venugopalan wrote:
> Hi Everyone
> I have created a VIM script that will help write docbook documents.
Here's what I uses for linuxdoc. I also had ones for typewriter font
but that doesn't seem to translate into docbook very well (since a
font is represnts presentation rather than a content). The reason
each is shown twice is that one is for use in command mode (nmap)
while the other is for use in insert mode (imap). The typed code for
them is the same in both modes.
:nmap ;r i<sect>
:imap ;r <sect>
:nmap ;s i<sect1>
:imap ;s <sect1>
:nmap ;t i<sect2>
:imap ;t <sect2>
:nmap ;i i<item>
:imap ;i <item>
:nmap ;j i<itemize>
:imap ;j <itemize>
:nmap ;k i</itemize>
:imap ;k </itemize>
:nmap ;p i<p>
:imap ;p <p>
David Lawyer