Start with:

(g)vim -d file1 file2


(g)vimdiff file1 file2

To ‘obtain’ the change in the other file, you type ‘do’, and to ‘put’ the change from the current file across, you type ‘dp’. Navigate with the common window shortcuts ie +( arrow keys or hjkl )



Updated my .screenrc a bit ( looks like this ):

hardstatus alwayslastline “%{=}%{g}[ %{W}%H %{g}][%= %{w}%?%-Lw%?%{r}(%{W}%n*%f %t%?(%u)%?%{r})%{w}%?%+Lw%?%?%= %{g}][ %{B}%Y-%m-%d %{W}%c:%s %{g}]“


Firefox: good to know

If Firefox fails to start with this error message “Firefox is already running but is not responding” do this to fix it:

First check in your process list to see if firefox is already running and if it is, kill it ( the mozilla page rekommends that you reboot your computer but who wants to do that ).

If you can’t find any firefox process or you still get this message after you killed it, go into your profile folder ( ~/.mozilla/firefox/XXXX/ ) and remove ‘.parentlock’.

Now Firefox should be able to start successfully.


Vim tips

If you want to search for something you select in visual mode: 1) yank 2) / 3) CTRL-R” 4) That is: y/^R” (note: ” is the default yank buffer. You could use a named buffer as well if you want.)

~ — switch case of character under cursor

i_CTRL-A — In insert mode, insert the previously inserted text.

{visual}g? — Rot13 encode highlighted text g?? — Rot13 encode the current line

CTRL-A — Add [count] to the number at or after the cursor CTRL-X — Subtract [count] from the number at or after the cursor

J - join the current line with the line below it.

. — repeat the last change

If you want to change a quotation: “This is a quotation” And want to change it to: “blablabla” Start on the first letter of the quotation and press ct” (Change Till “)

ga - with your cursor over a character, it will show you the decimal, hex, and octal codes of the character. Great for non printable characters.

To insert special characters, you’ll be interested in digraphs. :digraphs will show you a complete table of special characters, plus their two character code, plus their ascii number. You can insert digraphs using ctrl-k plus the two character code. For example ctrl-k SX results in ^B being inserted


Android looks really cool


Remember this

If you want to search for a specific string in all files recursivly then use this command:

grep -R <search string> <files/*>


Apparently I’m intelligent…

Feels a bit weird when you get a letter like this in dvd folder you bought

Hej Medmänniska. Du är intelligent om det är sexigt! Visste du om att en tredjedel av pengarna du lägger på film går raka spåret in i nya film projekt. När jag var liten blev jag mycket inspirerad av film och teater. Dom miljörer som byggts var så verkliga men alldels på låtsas. Jag blev fylld av fantasi. Jag ville vara i den där låtsasvärlden och arbeta. Nu är jag det och det är väldigt kul. Det vore sorgligt om branschen inte fick betalt för den kreativa verksamhet som behövs för att skapa film. Det skulle inte bli några filmer till slut. Tack för att du är med och sponsrar istället för att ladda ner olagligt på nätet.

Vänliga hälsningar Cecilia Frode och Vi som jobbar med film


VI bindings in bash and tcsh

To enable VI bindings in bash you type:

set -o vi

or in csh/tcsh you can type:

bindkey -v

Now you can press Escape to get to command mode, most of VI’s basic commands will work.


Command & Conquer

Thanks largely to the efforts of our loyal fans whom continue to sustain and grow the Command & Conquer community, Command & Conquer has become a legendary franchise and it’s time to celebrate its birth once again.

In order to give back to the fans for over 12 years of devotion we are putting together a 12th Anniversary celebration during the month of September. However, as any Command & Conquer fan knows, the true party starts today, August 31st, which marks 12 years since the original Command & Conquer launched way back in 1995.

To kick the celebration off, today we have a special surprise which we are certain new and old Command & Conquer fans will enjoy. We are providing the original Command & Conquer as a free download, compatible for Windows XP! This is the same version included with the collectors pack Command & Conquer: The First Decade, and is now available for you to download for free!


Why, oh WHY, do those ?@! nutheads use vi?

Here’s a pretty good article about VI and why you should use it and who do use it. The page also seem to sell a plugin for Visual Studio, Word and Outlook so you can get VI type editing in those applications aswell but it was a bit expensive ( around $70 I think ).