Muffinresearch Labs by Stuart Colville

Archive for the 'Work' Category

  1. Development Workflow - 28th July 2010
  2. Running VMware images under VirtualBox - 4th June 2009
  3. Starting a new job - 21st April 2008
  4. hListing unleashed - 27th March 2008
  5. EU Hackday 5: Django and Python FTW - 10th February 2008
  6. Presentation: De-centralised Version Control with Bazaar - 8th December 2007
  7. Joining Yahoo! - 12th July 2006
  8. From Rentokil to Multimap.com - 29th April 2006
  9. Off to work for Multimap - 4th April 2006
  10. New Rentokil Initial site launched and featured on Stylegala - 9th September 2005

Insert a tab character in vim when expand tabs is on|(0)

I have vim set-up to use spaces in place of tabs. Sometimes you need to use an actual tab e.g. editing a Makefile. Now whilst it’s possible to change settings so that tabs are used for specific files, a quick tip to remember is to simply type in insert mode:

Ctrl+v tab

That is Ctrl and “V” and hit the tab key, et voila you’ve entered an actual tab.

GNU screen: open tab in current working directory|(1)

A nice trick for having screen open a new tab in the same directory as the one you’re currently in. To use it add it to your .screenrc

# Open new window in current dir.
bind c stuff "screen -X chdir \$PWD;screen^M"
bind ^c stuff "screen -X chdir \$PWD;screen^M"

Hat tip: mteckert on SuperUser.com

Photos on Flickr

© Copyright 2004-13 Stuart Colville, all rights reserved. May contain traces of Muffin. Powered by WordPress. Hosting by Slicehost.com This page was baked in 0.480s.