Inkscape is a vector editor that can export to SVG, but that's a bit different than an editor specifically for the SVG file type.
I've often found myself wanting to edit SVG code directly while viewing the result. This maybe not the most common approach, but sometimes you want to be be dealing with specifics that relate to the fact that you're working with an actual SVG file, and not just a vector image.