vim and editing pandoc2rfc

… or any other document format for that matter. I thought it might be nice to have some sort of split window view in that allows you to edit a Pandoc file on the left and see the generated I-D on the right (in vim, with no extra daemons and not relying on inotify). Turns out you can do that, though it is not optimal, but it works. The jury is still out if this works well enough to actually make it useful.
Read more →

Make GNOME3 usable

GNOME3 in the default install is unusable, not as bad as Unity, but bad. Luckily with some minor tweaking it can be made to work quite nicely. These are some assorted notes on how I got stuff working the way I like. From a fresh Ubuntu install, install GNOME3: sudo apt-get install gnome-desktop-environment Then: Normal focus mode: gsettings set org.gnome.desktop.wm.preferences focus-mode 'sloppy' gsettings set org.gnome.desktop.wm.preferences auto-raise false Extensions: Caffeine - disable screensaver manually Frippery Move Clock Media player indicator Remove Accessibility Remove Panel App Menu Status Area Horizontal Spaces - reduces space used Weather - nice weather applet Windows Alt Tab (from: tglman, there are multiple) - alt-tab sanity Workspace Grid (from: mathematical.
Read more →

Persistent Synaptic Touchpad settings in Ubuntu 12.10+

I was wondering how to make my touchpad settings permanent in Ubuntu. I could find a few pointers on the net, like: http://tombuntu.com/index.php/2011/11/06/persistent-touchpad-configuration-in-ubuntu-11-10/ http://ubuntuforums.org/archive/index.php/t-1538147.html But sometimes it makes sense to look at your own system’s documentation: % cd /usr/share/X11/xorg.conf.d % head 50-synaptics.conf # Example xorg.conf.d snippet that assigns the touchpad driver # to all touchpads. See xorg.conf.d(5) for more information on # InputClass. # DO NOT EDIT THIS FILE, your distribution will likely overwrite # it when updating.
Read more →

Make me a sandwich, MAKE me a sandwich

We all know this comic: And now in zsh! With the following snippet all commands that are started with an uppercase word will be prefixed with sudo and then executed. So MAKE me a sandwich, becomes sudo make me a sandwich. accept-line() { local B B=(${=BUFFER}) if [[ "$B[1]" != [A-Z]* ]]; then zle .accept-line return fi if [[ $B[1] != "" && $B[1] == $B[1]:u ]]; then BUFFER="sudo $B[1]:l $B[2,-1]" fi zle .
Read more →

Vim as MANPAGER

I like Vim, so I try to use it at many places. Like in my shell (set -o vi), and when writing and coding. After some Googling I found that Vim can also be used as a MANPAGER. But there is one nagging issue. To quit viewing the manual page you have to type ‘:q’, which is one keystroke more then when using less as your MANPAGER… Needless to say: this is unacceptable.
Read more →