Articles Labelled with “Information technology”

Vim syntax highlighting for GIT and Cogito

Coloured GVim

If you use GIT or Cogito like I do every day, you might find useful to have the commit messages highlighted inside Vim (of course I assume you use Vim :-)).

First of all, copy these two syntax file into your ~/.vim/syntax/ directory:

Then add these two lines in your ~/.vimrc:
au BufNewFile,BufRead /tmp/gitci* setlocal textwidth=75 fileencoding=utf-8 encoding=utf-8 filetype=cogito
au BufNewFile,BufRead COMMIT_EDITMSG setlocal textwidth=75 fileencoding=utf-8 encoding=utf-8 filetype=gitcommit

This will load the correct syntax file and set the encoding of the message to UTF-8, which is the recommended encoding for GIT commit messages.

That’s all.

Penguin visual effects

Compiz screenshot — the cube in action

If by any chance you are one of the two or three people in the world that missed the Compiz project, my advice is to try and search YouTube for the “compiz” tag. I find this video is especially attractive, maybe for the sound track and the editing.

I think I should find the time to install and tune Compiz on my laptop only to show it to the next people bothering me with the fabulous new and very original visual effects of Windows Vista.

Of course all these graphics on the desktop is not very useful, but here the issue is: why to pay a whole lot of money to buy an operating system full of bugs and viruses? Furthermore: Microsoft last advertising is heavily based on Windows Vista visual effects, that are ridiculous if compared with Compiz, and not that original if compared with Apple’s OSX.

Maybe Microsoft decided to quit the operating system market?

Copyright © 2004–2019 by .
Creative Commons License Content on this site is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 2.5 Italy License.

RSS Feed. Valid XHTML 1.1. This blog is written in Objective Caml. Design based on the work of Rodrigo Galindez.