Friday, November 24, 2006

gvim - opening files in tabs. How to search through windows?

With gvim 7.x you can open files in tabs.

However on the command line it follows the old behavior of editing one file at a time.
eg:
gvim file1.py file44.php file2.py

Instead you have to use the -p command line option.
eg:
gvim -p file1.py file44.php file2.py

Then you have all of your files opened up in separate tabs.


The new tabs in gvim 7.x make using pypanel less necessary for me. pypanel is a little python app for X11 that works really nicely with WindowMaker (the minimal window manager). It gives you a task bar, which can be programmed in python. I used to use pypanel with gvim for when I have more than a few files opened in one work space. Now with tabs, I am able to have a lot more files opened at once.

Gvim tabs, the pypanel task bar, and windowmakers workspaces make my desktop a lot more scalable, and less annoying :)


Does anyone know of a tool to search through window names, and then focus the selected window? Now that I might have 100-200 files open at once a search function would sometimes be handy.


Another fun gvim trick for my Work In Progress (WIP) todo/log files is to insert the results of a command into your file. :r!date
Thu Nov 30 10:29:00 EST 2006

Now I don't have to leave the keyboard to insert the date.






Melbourne Website DeveloperThis post written by a Melbourne website developer. I am available for your web development projects. My skills include: python, php, mysql, e commerce, javascript, CMS, css, flash, actionscript, python, games, postgresql, xml.

Compiling pygame on windows with MSVC

John Popplewell has made a guide for compiling pygame on windows with the MS visual C compiler.

http://johnnypops.demon.co.uk/pygame/index.html


Looks like a pretty good guide to compiling pygame on windows. It shows you how difficult it can be. With unix it's much easier to compile.

You can also compile pygame with mingw and msys using gcc. It's equally as complex - just in different ways.


Melbourne Web Developer Written by a Melbourne web developer. Available for your projects - php, mysql, e commerce, javascript, CMS, css, flash, actionscript, python, games, postgresql, xml.