[linux-elitists] lawyers, vim, software patents

Wil Cooley wcooley@nakedape.cc
Sat May 12 13:58:30 PDT 2001

Thus spake Don Marti:

> I'd like to look at people's .vimrc files for an LJ piece; if you have
> anything particularly cool in yours, please post it and I'll give you
> appropriate credit if I use it.

Here's mine, with some useful mappings from filling text and some useful
DocBook maps.

W. Reilly Cooley                           wcooley@nakedape.cc
Naked Ape Consulting                        http://nakedape.cc
LNXS: Get 0.2.0-devel at http://sourceforge.net/projects/lnxs/
irc.openprojects.net                                     #lnxs

"I go on working for the same reason a hen goes on laying eggs."
- H. L. Mencken
-------------- next part --------------
set tabstop=4
set shiftwidth=4
set wrapmargin=7

" Paragraph wrapping
map  j{!}fmt

" E-mail quoted text paragraph wrapping
map _k j{!}fmt -p"> "

" map <M-K> j{!}fmt -w 100

" Re-load the rc file
map _rc :source ~/.vimrc

filetype on

ab teh the

" This prevents it from trying to use vim-extensions when invoked as vi
if exists ("did_load_filetypes")
function DocBook_maps()
	set ai
	set wrapmargin=3

	map  j{!}fmt -w90

	" Abbreviations for DocBook
	iab CVS <application>CVS</application>
	iab SSH <application>SSH</application>

	" Make end-tag automatically
	"iab <XX> <XX></XX>bbli
	iab <function> <function></function>bbli
	iab <keycap> <keycap></keycap>bbli
	iab <note> <note></note>bbli
	iab <application> <application></application>bbli
	iab <command> <command></command>bbli
	iab <filename> <filename></filename>bbli
	iab <keysym> <keysym></keysym>bbli
	iab <replaceable> <replaceable></replaceable>bbli
	iab <title> <title></title>bbli
	iab <ulink> <ulink url=""></ulink>bblli
	iab <guimenu> <guimenu></guimenu>bbli
	iab <guimenuitem> <guimenuitem></guimenuitem>bbli
	iab <guiicon> <guiicon></guiicon>bbli
	iab <guilabel> <guilabel></guilabel>bbli
	iab <guibutton> <guibutton></guibutton>bbli
	iab <emphasis> <emphasis></emphasis>bbli

	" Multi-line abbrevs
	"iab <XX> <XX>
	iab <itemizedlist> <itemizedlist>
	iab <example> <example>
	iab <informalexample> <informalexample>
	iab <listitem> <listitem>
	iab <member> <member>
	iab <orderedlist> <orderedlist>
	iab <para> <para>
	iab <programlisting> <programlisting>
	iab <section> <section>
	iab <simplelist> <simplelist type="vert">

au FileType sgml call DocBook_maps()


-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: not available
Url : http://allium.zgp.org/pipermail/linux-elitists/attachments/20010512/259b94a8/attachment.pgp 

More information about the linux-elitists mailing list