Sunday, May 29, 2011

Spell checking with VIM

Vim is known to be a powerful text editor, and it's true. With this simple command, you can enable spell checking (replace "fr" with your language code):

:setlocal spell spelllang=fr

If this locale is not installed for VIM, it will offer you to download and install it.
Once the spelling is activated, the misspelled words are displayed in red. Now you can use the spelling commands:

]s -> move to the next (probably) misspelled word
z= -> suggest corrections
zg -> add this word to the dictionary

Interrestingly, if a couple of words are valid only together, you may select them in visual mode and then hit zg.

Happy writing!

More about spelling in VIM

Saturday, May 28, 2011

Blogger "dynamic view"

Hi there :)

As I was playing around with the settings of my blog, I discovered a nice new feature. Try out this new dynamic view.

Friday, May 27, 2011

EEE 1015pem & Ubuntu: fix headphones

Hi there :)

I recently acquired a nice little Asus EEE pc 1015pem, and installed Ubuntu besides Windows. The linux runs very smoothly and this netbook has an absolutely huge battery life (I would not lie if I told you it lasts for about 9 hours).

I had a few troubles however. First, I could not get the highest brightness on the screen, but this seems to be fixed magically by now.

Second problem was that headphones would not work at all. Simple fix (run as root):

echo "options snd-hda-intel model=auto" >> \
  /etc/modprobe.d/alsa-base.conf

Now reboot, and there you go :) Have fun !