You might consider one of the classics - they're both free, extensible and have large user bases that extend beyond the Mac:
- Aquamacs - emacs for OS X (emacs in a shell window is also an option)
- Mac Vim - VI with a Mac-specific GUI (vim in a shell window is also an option)