Vim Macros for Editing DocBook Documents
If you're a vim user and you need to edit DocBook, the macros described here can make your job easier by providing you with vim key bindings for inserting tags and entities, as well as for inserting predefined tag templates. It also provides key bindings that allow you to move tags in your document and to move through your document by way of tags.
Although originally designed for use with DocBook/XML, these macros could be used with any similar markup language, such as HTML, SGML or other XML-based markup languages.
Official Home of DocBook The DocBook DTD is available here.
On-line version of the O'Reilly book DocBook: The Definitive Guide The DocBook DTD also is available here.
- « first
- ‹ previous
- 1
- 2
- 3
- 4
Mitch Frazier is an Associate Editor for Linux Journal.
Today’s modular x86 servers are compute-centric, designed as a least common denominator to support a wide range of IT workloads. Those generic, virtualized IT workloads have much different resource optimization requirements than hyperscale and cloud applications. They have resulted in a “one size fits all” enterprise IT architecture that is not optimized for a specific set of IT workloads, and especially not emerging hyperscale workloads, such as web applications, big data, and object storage. In this report, you will learn how shifting the focus from traditional compute-centric IT architectures to an innovative disaggregated fabric-based architecture can optimize and scale your data center.
Sponsored by AMD
Built-in forensics, incident response, and security with Red Hat Enterprise Linux 6
Every security policy provides guidance and requirements for ensuring adequate protection of information and data, as well as high-level technical and administrative security requirements for a system in a given environment. Traditionally, providing security for a system focuses on the confidentiality of the information on it. However, protecting the data integrity and system and data availability is just as important. For example, when processing United States intelligence information, there are three attributes that require protection: confidentiality, integrity, and availability.
Learn more about catching the bad guy in this free white paper.
Sponsored by DLT Solutions
| Making Linux and Android Get Along (It's Not as Hard as It Sounds) | May 16, 2013 |
| Drupal Is a Framework: Why Everyone Needs to Understand This | May 15, 2013 |
| Home, My Backup Data Center | May 13, 2013 |
| Non-Linux FOSS: Seashore | May 10, 2013 |
| Trying to Tame the Tablet | May 08, 2013 |
| Dart: a New Web Programming Experience | May 07, 2013 |
- RSS Feeds
- Making Linux and Android Get Along (It's Not as Hard as It Sounds)
- New Products
- Drupal Is a Framework: Why Everyone Needs to Understand This
- A Topic for Discussion - Open Source Feature-Richness?
- Home, My Backup Data Center
- Validate an E-Mail Address with PHP, the Right Way
- New Products
- Developer Poll
- Trying to Tame the Tablet
- not living upto the mobile revolution
1 hour 6 min ago - Deceptive Advertising and
1 hour 42 min ago - Let\'s declare that you have
1 hour 43 min ago - Alterations in Contest Due
1 hour 44 min ago - At a numbers mindset, your
1 hour 45 min ago - Do not get Just Almost any
1 hour 48 min ago - A fantastic rule-of-thumb to
1 hour 50 min ago - Keren mastah..
Penting,
2 hours 47 min ago - mini tablet compare
4 hours 6 min ago - Looking Good
7 hours 39 min ago
Enter to Win an Adafruit Prototyping Pi Plate Kit for Raspberry Pi

It's Raspberry Pi month at Linux Journal. Each week in May, Adafruit will be giving away a Pi-related prize to a lucky, randomly drawn LJ reader. Winners will be announced weekly.
Fill out the fields below to enter to win this week's prize-- a Prototyping Pi Plate Kit for Raspberry Pi.
Congratulations to our winners so far:
- 5-8-13, Pi Starter Pack: Jack Davis
- 5-15-13, Pi Model B 512MB RAM: Patrick Dunn
- Next winner announced on 5-21-13!
Free Webinar: Linux Backup and Recovery
Most companies incorporate backup procedures for critical data, which can be restored quickly if a loss occurs. However, fewer companies are prepared for catastrophic system failures, in which they lose all data, the entire operating system, applications, settings, patches and more, reducing their system(s) to “bare metal.” After all, before data can be restored to a system, there must be a system to restore it to.
In this one hour webinar, learn how to enhance your existing backup strategies for better disaster recovery preparedness using Storix System Backup Administrator (SBAdmin), a highly flexible bare-metal recovery solution for UNIX and Linux systems.



Comments
Re: Vim Macros for Editing DocBook Documents
i copied the 4 macro files in the article, but i get the following errors when doing, ":so maps.vim"...
i xb
it sort of just gets worse from there...
Re: Vim Macros for Editing DocBook Documents
It works now when downoading the files from the LJ server.
But there is a bug that inserts closing tags...
For example:
<F2><n> produces:
<itemizedlist>
<listitem><para></para></listitem>
</itemizedlist></para></listitem></itemizedlist>
<F2><p> produces:
<para>
</para></para>
If this could be fixed it would really make editing a lot easier so plz look over the code and post an update :-)
Morten Damsgaard-Madsen
Denmark
Where is the linuxjournal ser
Where is the linuxjournal server that you downloaded the files from?
ftp://www.linuxjournal.com/pu
ftp://ftp.ssc.com/pub/lj/listings/Web/7737.tar.gz
Re: Vim Macros for Editing DocBook Documents
As usual the socurce of errors is right in front of the computer ;-).
The script works as expected - I just forgot that I had the xml.vim script installed which interacts with these macros in funny ways...
Nice work!
/Morten
Re: Vim Macros for Editing DocBook Documents
I use Vim 6.2 and I get the same error.
If you observe the error shown, it says that a variable is undefined.
If you look into mfuncs.vim, you will see that "etags" is defined
in a conditional statement and used anyway subsequently.
Therefore, in the cases where the conditional statement is missed,
"etags" is undefined subsequently.
The author should have a look at the code one again and post here an update.
Re: Vim Macros for Editing DocBook Documents
Same goes for me: the version of vim I use is 6.3. Maybe the macros of this article are meant for an older version ?