There are XVim and xVim plugins for Xcode, they are made exactly for this.
You can also use KeyRemap4MacBook for this (from answer on stackoverflow and this blog):
There are XVim and xVim plugins for Xcode, they are made exactly for this.
You can also use KeyRemap4MacBook for this (from answer on stackoverflow and this blog):