articles tagged with tools

Conditional .vimrc configs

no comments yet, post one now

This is new to me, but probably old hat to vim regulars. You can have conditional statements in your vimrc config depending on which machine you are working on. In this case I have disabled end of line white space cleaning on my ‘calcifer’ and ‘alderman’ machines.

" get hostname
let machine = substitute(system('hostname'), "\n", "", "")
" auto strip whitespace when saving
" don't auto strip on these machines
if machine !~ "[calcifer|alderann]"
  autocmd BufWritePre * :%s/\s\+$//e
endif

I taken to sharing my development workbench and vim configuration across multiple machines and this comes in really handy.

December 21, 2011 10:11

Prepping for a MacBook Pro

no comments yet, post one now

Last week I finally gave in and placed an order for a new 2Ghz MacBook Pro. Being a PC user all my life, this will be my first switch to working on a Mac environment. I chose the MacBook Pro for 3 main reasons;

  • to test websites and work in a mac environment
  • for portability (I currently don’t own a laptop)
  • performance-wise it seems like it will have enough longevity to last me at least 3 years

Gearing up for this monumentous event, Ive been collecting bookmarks of Mac tips and tools I hope will be useful;

And for people switching from Windows to a Mac, or for those trying Bootcamp (Windows on an Intel Mac)

April 18, 2006 09:16
← (k) prev | next (j) →