You don't have to be using the LCL when using Lazarus. I use it to develop very non-visual firmware for ARM processors

Those days I can't live without Lazarus. There are just so many nice and nifty features packed into it, and I wouldn't hesitate to call it the best IDE I know. I guess you could use some old version of Delphi to write code in, and just compile from the command line

But if you just want a pretty good text editor, then I can recommend Programmers Notepad 2. I very often use it for minor edits