You are currently browsing the Carl’s notes weblog archives for July, 2009.

Breaking sentences into separate lines with Vim

I just read somewhere that when writing LaTeX documents it’s useful to have each sentence on a new line. My current document only has (double) line breaks between paragraphs. Here is how to use Vim to insert line breaks after each full stop.

In command mode press ‘:’ then enter s/\.\s\+/\.^M/. The ^M character represents a line break and must be inserted with CTRL-V Enter. Press enter to run the substitution on the current line. Add a percent character to run the substitution on the whole file: %s/\.\s\+/\.^M/.

Some more useful commands in a SunWorld article from 1997.

Problematic keyboard layouts in Ubuntu

I use the Dvorak keyboard layout but ran into some problems after upgrading to Ubuntu Jaunty. After logging in to X I got an error popup saying

Error activating XKB configuration.
It can happen under various circumstances:
- a bug in libxklavier library
- a bug in X server (xkbcomp, xmodmap utilities)
- X server with incompatible libxkbfile implementation

X server version data:
The X.Org Foundation
70000000

If you report this situation as a bug, please include:
- The result of xprop -root | grep XKB
- The result of gconftool-2 -R /desktop/gnome/peripherals/keyboard/kbd

Read more…

Typo3 and Firefox3 incompatibilities

The Typo3 backend doesn’t work properly in Firefox3. The left most column with the highest level options (Page, View, List, Extensions, Configuration…) disappears if you click on Page for instance. Then clicking on items of the Page hierarchy doesn’t do anything.

The solution is to install an extension called Firefox3 Backend Bugfix. I downloaded the T3X file, then went to Extension Manager in the backend, Import Extensions from the top drop down menu, Upload Extension, then go to Install Extensions from the drop down menu and click the grey ‘+’ icon next to the new extension.