Vim is a highly configurable text editor built to enable efficient text editing. It is an improved version of the vi editor distributed with most UNIX systems. Vim is distributed free as charityware.
Although, it can take a while to get used to, it's a really powerful editor. It also works in many platforms, windows, linux, many diff *nix, mac, etc...