Geany is a lightweight text-editor that incorporates IDE features.
I came across Geany some time back when I had to edit scripts and test them quickly. I wanted something that could offer syntaxing, indentation, etc. My search lead to Geany.
Geany supports auto-indentation, auto-complete, syntax highlighting among other features. These come handy when I work with Python/Perl scripts.
Download from the project homepage. Geany is available from openSUSE repos:
zypper in geany
Previously I used to split my terminals and edit on one using Vim and use the other to execute the script. It’s a cool way in the absence of IDEs though.