This Perl script renames buff-out.ogf to b###.ogf, where ### is the next higher number after the highest numbered b###.ogf file. It is used for keeping an archive of submitted distributed.net OGR packets.
This Vim macro converts <, >, ", and & into <, >, ", and & respectively. You can use this macro in both normal and visual modes. Its main use so far has been to convert scripts and code for posting to this journal.
This Vim macro takes the HTML table from the "My Caches" page at geocaching.com and converts it into a simple list of cache links. In order to use this macro:
Go to the "My Caches" page.
Invoke "View Source" in the web browser.
Copy the portion of the table to be converted.
Paste it into Vim.
Enter visual mode and select the text that was pasted.
This Vim macro toggles between linebreak and nolinebreak mode. In linebreak mode, lines are wrap at word boundaries. In addition, the macro maps the Up, Down, Home, and End keys so that they behave more naturally in linebreak mode.
The first set of Vim mappings will insert the current date. The second set of Vim mappings will update a line of the form "Last updated: date" so that it holds the current date.